Hello All, Here is the simple package to explain How to create a moving text in unity3d. Just download the package and explore it. Before we go more detail, just open the MovingText Assets -> scene -> MovingText, Run it.... You can able to see texts are moving around left, right and middle of the scene. Okay, now we’ll see how to make it use in your game. Here the Steps to follow use other gameobjects:- 1) MovingText Script will helpful to create moving texts, and here it’s attached to main camera, you can attach it to any game objects in your scene. 2) Drag the Moving text prefab to go_movingText. 3) Drag the GainTextMat and LoseTextMat to GainMat and LoseMat. 4) Call the CreateMovingText Function whenever you needed. 5) Just pass the position to create, score, Gain or Lose and move to which side of screen. Eg) CreateMovingText(v3_somePosition, “+25”, “Gain”, “Left”); // For Gain CreateMovingText(v3_somePosition, “-25”, “Lose”, “Right”); // For Lose 6) If you wanna to call from other script, use MovingText. CreateMovingText(v3_somePosition, “+25”, “Gain”, “Left”); // For Gain Enjoy it... Here is the package to download ,
0 Comments
Leave a Reply. |
AuthorSriram M G. ArchivesCategories |