I’m really struggling with creating anything beyond the most basic custom UI editors and runtime UI when using UI elements.
Could some share some sample Menu created using UI toolkit that I could use as a reference to learn about using it at runtime.
My current way of creating a menu system is too crude to be the manageable:(. I have to create new UI document and script for each of the menu panel and I activate/Deactivate gameObjects (with UIDocument component) based on which Panel (say audio or display setting) is enabled. There must be a better to do all these generic system for sure. (Should I create a custom element for each panel?)
Any help is appreciated.
I have different pages, each of which has a UXML and a code-behind C# file. When I switch to a different page, I add in that page and remove the old one (after some animations). The source code isn’t really commented, but if you want to see…