Search Unity

UIElement debugger - what is it for?

Discussion in 'UI Toolkit' started by laurentlavigne, Nov 1, 2018.

  1. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,362
    I did a small test and don't see it in the debugger. Is it only for editor GUI?

    Code (CSharp):
    1. public class UITester : MonoBehaviour
    2. {
    3.     void OnGUI()
    4.     {
    5.         GUI.Label(new Rect(10,10,50,50),  "test");
    6.     }
    7. }
    upload_2018-10-31_23-19-18.png
     
  2. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,618
    I guess, it's not for the old IMGUI, but their new retained-mode UI system only?
    https://docs.unity3d.com/Manual/UIElements.html
     
    richardkettlewell likes this.
  3. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,362
    Still experimental I see, hopefully it'll be available at runtime.
     
    yukunlinykl likes this.
  4. benoitd_unity

    benoitd_unity

    Unity Technologies

    Joined:
    Jan 2, 2018
    Posts:
    331
    the UIElements Debugger is not compatible with IMGUI, only with the new UI framework called UIElements.
     
  5. MartinIsla

    MartinIsla

    Joined:
    Sep 18, 2013
    Posts:
    104
    When working with UIElements, it became my best friend immediately! It helps you visualize the hierarchy tree and the properties and USS files applied to each element. It's great.
     
    benoitd_unity likes this.