Draw text in a Sprite element
Hi friends.
First sorry for my bad english guys!
I making a card game using the 2D camera, I have the card layout, one sprite, and have a rectangle sprite to write the card text, but i don't know how I can write the card text to one sprite without use UI, because my cards not in UI and i need write the text in the sprite. Someone know how i can do this?
Answer by TBruce · Apr 02, 2016 at 05:16 PM
@jonesvg Add a child GameObject to the one the sprite is on. The add a GUIText component to the new GameObject.
This is not working. The Text field does not render if you take it out of the canvas. Also, an empty canvas gets created that you can't delete. I just want a Text that behaves like any other gameobject - it has nothing to do with UI, it's just an object in the world. I don't want a 3D text mesh either... :)
Your answer
Follow this Question
Related Questions
Making my variable global. 1 Answer
Per Frame BoxColliders? 0 Answers
Why Can't I get 2D object to Move? 1 Answer
Sprites dull and transparent, irregular shape. what do I do? 0 Answers