Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by GraviterX · Dec 06, 2014 at 02:20 AM · guigui-text

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?

Comment
Add comment · Show 6
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image thepenguinmaster · Dec 06, 2014 at 02:29 AM 0
Share

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.

avatar image GraviterX · Dec 06, 2014 at 02:33 AM 0
Share

So I can't just use the old GUI anymore?

avatar image tanoshimi · Dec 06, 2014 at 06:28 AM 0
Share

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.

avatar image quansatthu · Dec 06, 2014 at 08:36 AM 0
Share

For the new GUI system, you must play to see the UI

avatar image Eric5h5 · Dec 06, 2014 at 04:18 PM 0
Share

@quansatthu: no you don't; it's visible in the scene view, and in the game view, without playing.

Show more comments

2 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

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.)

Comment
Add comment · Show 10 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image GraviterX · Dec 06, 2014 at 04:33 AM 0
Share

I tried that, the problem is I can't see it in the game view

avatar image Eric5h5 · Dec 06, 2014 at 04:38 AM 0
Share

Then you set it up wrong.

avatar image GraviterX · Dec 06, 2014 at 05:06 AM 0
Share

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

avatar image Eric5h5 · Dec 06, 2014 at 05:42 AM 0
Share

The same way it was set up before.

avatar image Eric5h5 · Dec 06, 2014 at 07:01 PM 1
Share

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.

Show more comments
avatar image
-1

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.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Eric5h5 · Dec 07, 2014 at 05:41 PM 1
Share

The question is not about OnGUI.

avatar image GraviterX · Dec 07, 2014 at 10:49 PM 0
Share

@Eric5h5 I got it to work by copying the settings. Thanks!

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

29 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

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


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges