Search Unity

Resolved UI Builder of UI Toolkit

Discussion in 'UI Toolkit' started by optimise, Aug 26, 2022.

  1. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    2,129
    I would like to ask is that UI Builder is only use for creating runtime UI or it also can use for creating editor UI?
     
  2. antoine-unity

    antoine-unity

    Unity Technologies

    Joined:
    Sep 10, 2015
    Posts:
    780
    optimise likes this.
  3. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    2,129
    Does it means that I use UI Builder to create an UI panel I can just directly use it at both editor and runtime without needing to do any changes?
     
  4. antoine-unity

    antoine-unity

    Unity Technologies

    Joined:
    Sep 10, 2015
    Posts:
    780
    The same UXML/USS files can be used in both contexts. The main caveat is that you can't reference some UnityEditor-only controls, just like you can' use UnityEditor.* APIs in the Runtime.