Answers for "how to change the transform of an object in unity"

C#
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
3

how to get the transform of an object in unity

Transform YourGameObjectsTransfrom = YourGameObject.transform;
Posted by: Guest on October-30-2020

Code answers related to "how to change the transform of an object in unity"

C# Answers by Framework

Browse Popular Code Answers by Language