Search Unity

Question Can you create a custom inspector for custom UI elements

Discussion in 'UI Toolkit' started by Lance-Grooms, Dec 3, 2022.

  1. Lance-Grooms

    Lance-Grooms

    Joined:
    Mar 24, 2016
    Posts:
    26
    Just to clarify, I'm specifically asking about the element inspector that appears within the context of the UI Builder. It looks like from the code repo that this is an internal class, so I'm guessing the answer is no, but I thought I'd ask (and to see if was even on the radar).

    The reason I'm asking: It seems like the inspector in the UI Builder is a kitchen sink which always exposes everything (all traits from everywhere). But suppose you create a custom UI element where the only thing you want to expose is a subset of those traits (our even just the custom traits for your custom element). Is this possible?
     
    giopiazza likes this.
  2. Lance-Grooms

    Lance-Grooms

    Joined:
    Mar 24, 2016
    Posts:
    26
    Ah. Just saw this in the docs:
    UI Builder currently does not support fully custom Inspectors for custom C# elements.

    So. Is this even on the radar for the future?