- Home /
I want to add text, not GUI
I want to add text for my upgrade menu, but the intro to the menu is a door that slides up. I was planning on having my text there when the scene starts, but the only text I can find is GUI text. I don't want to use GUI text for this scene. How do I use text that is not GUI?
You can't not use GUI Text... Text is drawn by Unity's GUI system, that's why you need to call GUI. What about GUI Text doesn't work for you? The only other way would to either make 3DText, or create a texture that has your text on it with transparency and just translate a Quad with that texture on it or w/e
Invertex: maybe you're confusing the two ways to make gui/screen text?
A guiText object is just drag&drop.
"Calling GUI" (OnGUI) is for the other, coding, method, such as GUI.Label
. It's more of a pain, but good when you're already using OnGUI to make working buttons.
Answer by Owen-Reynolds · Jan 11, 2014 at 10:35 PM
The other kind of text is 3DText (aka "TextMesh".) It lives in the game world -- position it on the door the same as you would a decal plane.
An odd feature is 3DText always shows through everything else. Often, you want that, but you can find in UA how to prevent that (use a modified shader -- not as hard as it sounds.)
Your answer
Follow this Question
Related Questions
Detect Text in GUI; Print 1 Answer
GUI text font change 3 Answers
Limit on GUI Components? 0 Answers
Unity GUI text displaying as noise 1 Answer
GUI.PasswordField "•" makes "?" 1 Answer