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
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.
Sorry, but you spread clearly wrong information here. Also it doesn't really answer the question.
Unity's I$$anonymous$$GUI system is by no means "deprecated" or outdated.
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
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" !! :)