UIToolkit
Description of the feature Currently, the component based uGUI is used to display the debug console.
It would be nice if Unity's new "UI Toolkit" could be used as alternative. This includes
- a UXML file for the layout
- a USS file for the style
- code to bind the UI elements to methods of the debug console
- probably refactoring of the current code to be UI agnostic
Maybe a UIDocument could be referenced in the DebugLogManager. If it is set then the console UI is shown by instantiating and adding the UXMl file to the UIDocument's rootVisualElement.
Additional info
Thanks for this project!
The UI Toolkit is not a replacement of the Unity UI, they have been created to live together, a refactor can be nice, but i don´t se any benefits on changing how the UI is made. besides UI Toolkit have less features and more bugs.
btw, i am making a console using the UI Toolkit, to learn how to made a console and how to use the UI Toolkit, and thinking if was a nice idea using the UI Toolkit for this
The UI Toolkit is not a replacement of the Unity UI, they have been created to live together, a refactor can be nice, but i don´t se any benefits on changing how the UI is made. besides UI Toolkit have less features and more bugs.
btw, i am making a console using the UI Toolkit, to learn how to made a console and how to use the UI Toolkit, and thinking if was a nice idea using the UI Toolkit for this
确实可以成为学习 UITookit 的一个起点,目标明确,实用且有趣。
I believe using UI Toolkit could be an improvement as today.