- Home /
unity3d GUI scripting
Is there no such thing a fx: GUI.Box in the new Unity? - Because I can't really get it to work... If its removed how to I then do like a text saying something like: "Press E To Talk"?
Look at the Unity UI docs. The relevant scripts are under UnityEngine.UI.
As far as I can tell, this didn't really answer my question. Is just explained about the new UI system.
Which includes UI.Text for displaying text. Try starting with the tutorials.
Why do you say there is no GUI.Box? The script API docs say it's still there.
Regardless, it's not recommended to use GUI for anything anymore. Use the new UI system.
Answer by Hrungdak · Mar 30, 2015 at 08:25 AM
To get a box with the text:
Add a Canvas to your Hierarchy (Create/UI/Canvas)
Add a Text to your Canvas (Select Canvas, then Create/UI/Text).
Select the Text item in the Hierarchy.
In the inspector find the field named "Text" and enter your text.
No. The new UI System is much better than the old one. You should get familiar with it.
I have just learned that u can use the old UI system nevertheless. I dont have any experience with it, so i can not help you with thisone.
Oh you can? Well... I just got confused when I couldn't type GUI.Box Haha