Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to move a gameobject

   public static int movespeed = 3;
   public Vector3 userDirection = Vector3.down; //You can change this to any direction
   
   void Update()
    {
        transform.Translate(userDirection * movespeed * Time.deltaTime);
    }
 
PREVIOUS NEXT
Tagged: #move #gameobject
ADD COMMENT
Topic
Name
5+6 =