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 Bokaii · Mar 29, 2015 at 11:03 PM · unity 5uiguiuntiy3d

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"?

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 Huacanacha · Mar 29, 2015 at 11:17 PM 0
Share

Look at the Unity UI docs. The relevant scripts are under UnityEngine.UI.

avatar image Bokaii · Mar 30, 2015 at 08:18 AM 0
Share

As far as I can tell, this didn't really answer my question. Is just explained about the new UI system.

avatar image Huacanacha · Mar 30, 2015 at 09:00 AM 0
Share

Which includes UI.Text for displaying text. Try starting with the tutorials.

avatar image Bokaii · Mar 30, 2015 at 09:06 AM 0
Share

Is there no GUI.Box/GUI.Button anymore?

avatar image Huacanacha · Mar 30, 2015 at 09:22 AM 0
Share

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.

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
0

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.

Comment
Add comment · Show 5 · 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 Bokaii · Mar 30, 2015 at 09:08 AM 0
Share

So there is no GUI.Box/ GUI.Button anymore?

avatar image Hrungdak · Mar 30, 2015 at 11:58 AM 0
Share

No. The new UI System is much better than the old one. You should get familiar with it.

avatar image Bokaii · Mar 30, 2015 at 12:39 PM 0
Share

Okay Thank you :)

avatar image Hrungdak · Mar 30, 2015 at 07:45 PM 0
Share

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.

avatar image Bokaii · Mar 31, 2015 at 12:04 AM 0
Share

Oh you can? Well... I just got confused when I couldn't type GUI.Box Haha

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

22 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

Related Questions

UI working fine in editor but glitched in standalone builds 1 Answer

Unity 5 UI, Screen Resolution and Ratio 1 Answer

Camera Culling Masks - Assigned Layers Not Respected for GUI elements 0 Answers

How Converting GUILayout.TextField with UI InputField ? 2 Answers

Problem with build version 1 Answer


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