Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    Dismiss Notice

Feedback Add CreateDefaultInspector() to Editor class for custom inspector

Discussion in 'UI Toolkit' started by Kichang-Kim, Aug 8, 2019.

  1. Kichang-Kim


    Oct 19, 2010
    Hi. As a title said, current Editor.CreateDefaultInspector() overrides entire Inspector UI so if you want to add simple additional button to inspector, you should create all of default insepctor element yourself or using legacy IMGUI container (

    I thnk UIElements version of default inspector element makes many developers be happy.

  2. antoine-unity


    Unity Technologies

    Sep 10, 2015

    Indeed this is something we have in mind for the future. Thanks for your feedback.
  3. Baste


    Jan 24, 2013
    A really nice utility would be to be able to have a call that would spit out the uxml (and possibly uss) that would define the default editor.

    Often you want a custom editor to be 95% like the default one, but with some changes here and there. If you could automatically generate the default uxml so we could copy that and edit it, that'd be great.

    We'd of course have to manually update it once the target script changes, but that's fine - the alternative is to write the entire editor from scratch, in which case that'd still be the case.

    Alternatively, once you switch default editors to be uxml-based, we could generate the root visual element, and then target the things we want to edit with UQuery. That would require the elements to have some identifier we could use to hook into.