Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
C#
how to change the position of a gameobject in c# unity
Svj0hn
Programming language:
C#
2021-05-05 08:49:51
1
Q:
how to change the position of a gameobject in c# unity
Shaun Musgrave
Code:
C#
2021-03-22 13:55:57
Vector3 pos = transform.position; pos.x = 12; transform.position = pos;
0
Tags
unity
object
change
unit
position
how
gameobject
game
Related
unity c# change color of gameobject
how to make an object move in unity
how to move towards an object unity
how to change the center of the character controller in unity
how to reference the position of a game object unity
unity how to move an object
how to change scenes in unity
unity how to move a gameobject towards another gameobject
change sprite of gameobject unity
change olour in unity script
unity how to move character using transform
how to acivate a game object unity
get position of any gameobject in unity
unity how to move an object to another object
New to Communities?
Join the community