- Home /
How to move 3D Text according to the GameObject ?
Hi All,
1) How should i move the position(Display of Text should follow the Gameobject) of 3DText along with the GameObject?
Example : If i move the GameObject in Y axis the 3D Text also move in Y direction , If GameObject moves in Z axis the 3DText should move in Z-direction.
2) Is it possible to get the exact Z-coordinate, When i click the mouse on the Screen ? Will ScreenToWorldPoint will work out ?
Please help me Regarding these issues.
Thank you in advance...
Answer by create3dgames · Jun 20, 2013 at 02:15 PM
You can parent the 3d Text to the GameObject, which is probably the simplest way, or you could move it through script:
var text : GameObject;
var object : GameObject;
text.transform.position = object.transform.position;
Your answer
Follow this Question
Related Questions
Move in the direction its facing C# 2 Answers
How to move 3DText along with GameObject ? 1 Answer
projectile move still the same direction 0 Answers
Character Model Move Direction 0 Answers
Character Model direction 1 Answer