UnityIngameDebugConsole icon indicating copy to clipboard operation
UnityIngameDebugConsole copied to clipboard

UIToolkit

Open achimmihca opened this issue 2 years ago • 3 comments

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!

achimmihca avatar Jan 25 '23 15:01 achimmihca

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

vensauro avatar Feb 25 '23 13:02 vensauro

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 的一个起点,目标明确,实用且有趣。

Bian-Sh avatar Mar 11 '24 03:03 Bian-Sh

I believe using UI Toolkit could be an improvement as today.

Simferoce avatar Aug 10 '25 12:08 Simferoce