Search Unity

InspectorElement for types other tan GameObject or ScriptableObject

Discussion in 'UI Toolkit' started by Araj, May 21, 2020.

  1. Araj

    Araj

    Joined:
    Jan 3, 2013
    Posts:
    27
    Hi!

    I was creating my own Inspector for a project that I'm working on and realized that there is an InspectorElement that does all the job for me. The thing is that it's only limited to GameObjects or ScriptableObjects, if I want to inspect a Shader or a Material, the InspectorElement doesn't work (checking the code, it doesn't bind to the object).
    Is this a current limitation of this component? Investigating a bit I've seen that the default inspectors for Material and Shader are using IMGUI instead of the UI Toolkit.

    Thanks in advance!
     
  2. mcoted3d

    mcoted3d

    Unity Technologies

    Joined:
    Feb 3, 2016
    Posts:
    703
    You are correct. Custom material/shader inspectors are still generated through IMGUI code. I'll make sure we keep track of a feature to give a UI Toolkit alternative to this. Thanks!
     
  3. Araj

    Araj

    Joined:
    Jan 3, 2013
    Posts:
    27
    Thanks a lot! :)
     
unityunity