Answers for "position of gameobject unity"

C#
6

get position of any gameobject in unity

GameObject.Find("Your_Name_Here").transform.position;
Posted by: Guest on August-04-2020
14

unity set position

// To set the position of a gameobject use the following
GameObject.transform.position = new Vector3(x, y, z);
Posted by: Guest on February-22-2020
2

get position of gameobject unity

GameObject.FindGameObjectWithTag("Your_Tag_Here").transform.position;
Posted by: Guest on April-14-2020

Code answers related to "position of gameobject unity"

C# Answers by Framework

Browse Popular Code Answers by Language