Question by
Shinyonok · Aug 04, 2016 at 12:58 PM ·
2dscripting problemuitext
How to render text on top of the objects that are generated on the map using a script?
The text is only displayed in the canvas and the objects over which to render text are out of the canvas. How to render text on top of the objects that are generated on the map using a script?
puc.png
(425.1 kB)
Comment
Answer by Caestar · Aug 17, 2016 at 01:31 PM
My suggestion, if understanding the question, is to try taking a look at https://docs.unity3d.com/ScriptReference/Camera.WorldToScreenPoint.html to grab the position of the monsters and then put the text over them from there.
Your answer
Follow this Question
Related Questions
Changing the UI Text 0 Answers
NullReferenceException on Text element 1 Answer
Null reference exception to a non-null text object? 1 Answer
How do I keep two UI text unity3d on the scene 2 Answers
UI Text: Words at end of line jumping to next line 0 Answers