Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question How to use ui toolkit inside imgui for editor ui?

Discussion in 'UI Toolkit' started by Inkhawk, Apr 8, 2021.

  1. Inkhawk

    Inkhawk

    Joined:
    Mar 30, 2021
    Posts:
    7
    I know I can use IMGUI inside visual tree, but how to do the reverse?
    I'm trying to draw the VisualElement in IMGUI in a style like:
    Editor.DrawVisualElement(posRect, element);

    Is this possible?
    Thanks
     
  2. antoine-unity

    antoine-unity

    Unity Technologies

    Joined:
    Sep 10, 2015
    Posts:
    771
    No, this is not possible at the moment.