Getting Started with UI Toolkit
Up to this point, the focus of this book has been on Unity UI (uGUI). However, Unity has been developing another system in which you can develop UI for your game: the UI Toolkit. It is based on the principles of web design and is meant to allow you to create UI in a more flexible and extensible way than the uGUI. It accomplishes this by divorcing the design and development of UI from scenes and GameObjects and instead creates UI via code and style sheets—just like in web design.
The UI Toolkit is an entirely different system, so beginning development with it may feel jarring at first if you are used to developing UI with uGUI. However, if you have experience with .html
and .css
or developing Android or iOS interfaces using XML
, this should all feel very familiar.
Since the UI Toolkit is an entirely different system using entirely different principles than the rest of the chapters in this book, to fully explain all that you could do with...