Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to change the position of a gameobject in c# unity

Vector3 pos = transform.position;
pos.x = 12;
transform.position = pos;
 
PREVIOUS NEXT
Tagged: #change #position #gameobject #unity
ADD COMMENT
Topic
Name
1+9 =