Unity3D - How to put text on your 2D GameObjects, and how to change the text

preview_player
Показать описание
Basically all you have to do, is create a gameobject, then place a new empty object on it.
To that new empty object you have to add textmesh pro text (also you have to import it).
Resize it as you like. Then change the colors if you want.

If you are scripting it, don't forget to import TMPro, with using TMPro.
Рекомендации по теме
Комментарии
Автор

this silent video saved my project.... thank you so much

liliandsouza
Автор

Exactly what I was looking for, thanks!

Matheus
Автор

Awesome. I can now debug things in visual, super easy way. Thank you!

bbp
Автор

Tysm this solved my issue with showing dyamic text over an object!

Junohawk
Автор

Very easy and super usefull. Thanks! :)

ShagohadPL
Автор

THANKS YOU SO FREAKING MUCH I NEEDED THIS SO BAD THANKS THANKS THANKS

thepro
Автор

Could you help me with an issue I'm having? I'm enabling my text upon trigger enter with text.enabled = true; text being the variable calling for the TMP_text. This works perfectly, however upon exiting the trigger (OnTriggerExit2D text.enabled = false;) nothing happens and my text remains.

miserywas