I am seeing a lot of mentions of creating a UI in 2d game tutorials but I want to know is GUI same as UI in 2d?
I cannot find GUI anywhere in 2d to add only UI
I am seeing a lot of mentions of creating a UI in 2d game tutorials but I want to know is GUI same as UI in 2d?
I cannot find GUI anywhere in 2d to add only UI
Previously to 4.6 there was a set of GUI classes that allowed and facilitated the creation of 2d GUI(Graphical User Interface)/UI(User Interface), a lot of it was done in code and when written/introduced was standard in a lot of the industry.
The pre-4.6 version of in unity GUI/UI was okay, but needed to be redone, both for optimization and future forward UI design(like 3d and 2d options for the UI, not just 2d). So yes, technically a GUI and UI “can” be the same, though i guess a UI in real life could by a mouse, while a GUI is specifically describing a graphical interface.
The Unity editors way of doing user interfaces will be referenced as UI, both in their tutorials, their documentation and namespace structure in code going forward and it is a new system.
In general use terms these are essentially the same thing. GUI stands for Graphical User Interface. UI stands for User Interface.
In Unity speak these are different things. GUI refers to the legacy OnGUI and editer GUI systems. UI refers to the UI tools introduced in version 4.6.
A GUI is just a Graphical User Interface which are 2D by default unless graphics used are made to look 3D. So in turn yes a GUI can be used in a 2D game.