Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 /
  • Help Room /
This question was closed Dec 23, 2015 at 09:46 PM by Fattie.
avatar image
0
Question by kevinrocks_786 · Dec 23, 2015 at 06:42 PM · c#guionguimethodmethods

re historic GUI system

Hello guys. So I'm asking myself, how is it that you can only call GUI methods in the method OnGUI? Is there a way to check if some method calls are in specific methods. (example: You can call regular methods like Instantiate in OnGUI and cal GUI methods. But you can not call GUI methods in Update)? Thanks

Comment
Add comment
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

1 Reply

  • Sort: 
avatar image
0

Answer by Fattie · Dec 23, 2015 at 09:46 PM

You **must not* use the retired "GUI" system any more.

Simply use the (incredibly easy) UI system.

1, click "add canvas" 2, click "add button"

it's literally a fraction of the time of making this post.

in answer to your historic question the "GUI" system which is no longer available, very simply was programmed to work in the "OnGui" call which is no longer available. You can no longer use "GUI", simply use the (incredibly easy) UI system.

1, click "add canvas" 2, click "add button"

it's literally a fraction of the time of making this post.

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 Bunny83 · Dec 23, 2015 at 10:42 PM 0
Share

Sorry, but you spread clearly wrong information here. Also it doesn't really answer the question.

  1. Unity's I$$anonymous$$GUI system is by no means "deprecated" or outdated.

  2. Also it is still available and you still can use it.

I know you are a big fan of the new UI system and of course it has many advantages. However not all GUI needs are equally satisfied by the new system. The new UI system has better performance and a WYSIWYG approach, but it sucks when you need highly dynamic GUIs. $$anonymous$$eep in $$anonymous$$d not everything that is developed with Unity has to be a game and not always need to have as few draw calls as possible. Not everyone that need some sort of GUI is a designer who likes to drag objects around in an editor.

"must not" sounds like if you do, you're going to start world war 3. Even the documentation uses the phrase "should not" and mainly to drag people towards the new system. The old one will still be available and is still in use by the editor. The whole editor environment is made with the "old" system. You actually can not use the new system for editor program$$anonymous$$g

avatar image Fattie Bunny83 · Dec 23, 2015 at 11:15 PM 1
Share

Hey Bunn!

You raise an interesting point

For every 10,000 unity users, 10 are professional users, 9500 are hobbyists who have never programmed anything and 490 have a professional background and are using unity for some reason in their mix.

This question is only relevant to the 9500 users; those folks extremely simply "should not" use the "old" gui system.

"Sorry, but you spread clearly wrong information here" note that my sentence "You must not use the retired 'GUI' system any more" is entirely correct, 100% correct, for the 9500 people in question

It is a 100% correct sentence. "You must not use the retired 'GUI' system"

Literally, addressing the person writing the question, that person "must not use gui".

I can appreciate my later sentence "You can no longer use "GUI"" could be interpreted to mean "technically the system is not available", but I meant .......

..........to give an example, if I said to you "You can't drive over 100 mph in the USA!!!!" Of course you "can" "technically" drive over 100 mph in the USA, but I'm saying "you can not do it!!!"

The simple reality is for the 9500 people in question, forget you ever saw mention of the "gui" system. This is undeniable.

We can only pray it is eli$$anonymous$$ated in Unity6, to avoid confusion. 90% of the whole effort of Unity, as an ecosphere, is helping absolute beginners with basics. Reality is pedagogic! :)

Just TBC .........

"I know you are a big fan of the new UI system"

Unity's UI is a joke. But for beginners, they absolutely should not use the ancient "gui" system.

$$anonymous$$nowledge of the ancient "gui" system should be suppressed.

It should be removed from the documentation (for the 10 of 10,000 people to whom it is relevant {and who would never use it} - so what?);.. (One useful idea would be, just remove the old gui system from non-pro licenses.) ..

In case any beginner (ie, 95% of unity users) asks about the "gui" system, definitely the best approach is to lie and say "it is not available".

Or, like me, just say "you can not use it" !! :)

Follow this Question

Answers Answers and Comments

53 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 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

Get Width/Height Of String Outside of OnGUI Method 1 Answer

Declared variable being returned as null in a method? 0 Answers

GUI Scripting Hierarchy 0 Answers

Get length of array C# 3 Answers

Can I store a value computed in one method outside of that method? 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