How do you reference a GameObject position in unity? code example
Example 1: how to reference the position of a game object unity
private Transform player;
private void Start()
{
player = GameObject.Find("Player").transform;
}
Example 2: how to get position of gameobject in unity
GameObject.Find("Your_Name_Here").transform.position;