- Home /
GUI in Unity 4.6?
So now with 4.6 we have new UI text, images, etc. That are available for use. However, I have some dialogue scripts written to affect GUI. Whenever I place an empty gameobject with GUI Text on it in the scene, I can't see it. you used to be able to select create in the hierarchy and do it, but now with the UI it's not there. Do I need to make a new script for the new UI Text? Or does it function the same as GUI?
Have you tried to place your text object onto a panel or window object? I beliece this may be required in some cases. To convert to the new UI system, you will likely need to restructure a good amount of your code to take advantage of the new system.
You can still use the old GUI (it's recommended to move across to the new UI, but if you're in the middle of a project using old GUI you can continue). Please paste the exact steps you're using to reproduce your problem.
@quansatthu: no you don't; it's visible in the scene view, and in the game view, without playing.
Answer by Eric5h5 · Dec 06, 2014 at 03:37 AM
All of the old GUI functionality is exactly the same and hasn't been touched. Create a GameObject with a GUIText component; this is the way it's always worked. The only thing is that the GameObject -> Create Other menu has been removed so it takes an extra step to add the component. (To encourage usage of the new UI, I'm sure.)
I tried that, the problem is I can't see it in the game view
How would you recommend setting it up? Basically what I'm trying to do is make an OnTriggerEnter() function that displays GUI, but when I make it I can't see the text
You still have it set up wrong. I don't know what settings you want, but if you can't figure it out, then the simplest thing is to make a GUIText with 4.5, take note of the settings, and use the same settings when making a GUIText with 4.6.
Answer by RandomCharacters · Dec 07, 2014 at 05:34 PM
I believe the old ongui is the same as before. Its the new ugui that's different. So you can still use the old way.
@Eric5h5 I got it to work by copying the settings. Thanks!
Your answer
![](https://koobas.hobune.stream/wayback/20220613173339im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
create a box that player can type in it ( only type numbers ) 1 Answer
create a box that player can type in it 1 Answer
Any fade-in/fade-out animations for GUI Text? 3 Answers
GUI Text For Simple Game Tutorial 1 Answer
Text Effects... 2 Answers