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

Feature Request Custom Inspector for ShaderGui?

Discussion in 'UI Toolkit' started by Stroustrup, Aug 11, 2020.

  1. Stroustrup

    Stroustrup

    Joined:
    May 18, 2020
    Posts:
    142
    there is no
    Code (CSharp):
    1. public override VisualElement CreateInspectorGUI()  
    for creating custom inspectors when inheriting from ShaderGui rather than Editor, when you want custom inspectors for materials rather than mono scripts

    are there any plans to support custom material inspectors with uitookit?
     
  2. uDamian

    uDamian

    Unity Technologies

    Joined:
    Dec 11, 2017
    Posts:
    1,231
    It's on our radar but not a priority just yet. You'll have to stick to IMGUI for material inspectors for now.
     
    Findeh likes this.
  3. Stroustrup

    Stroustrup

    Joined:
    May 18, 2020
    Posts:
    142
    my ugui is not working, i can't move the slider at all or key in values.


    i'm trying to use EditorGUI vs EditorGuiLayout with its manual rect positions

    Edit: nvm, fixed by using GUILayoutUtility.GetRect(999, 999); at the start
     

    Attached Files:

    Last edited: Aug 11, 2020
  4. uDamian

    uDamian

    Unity Technologies

    Joined:
    Dec 11, 2017
    Posts:
    1,231
  5. MaxRoetzler

    MaxRoetzler

    Joined:
    Jan 3, 2010
    Posts:
    136
    +1 for UI Toolkit support for custom material editors.
     
  6. sevelee

    sevelee

    Joined:
    Apr 5, 2017
    Posts:
    25
    2022 now, When will this function be delivered?
     
  7. MaxRoetzler

    MaxRoetzler

    Joined:
    Jan 3, 2010
    Posts:
    136
    @uDamian two years later and it still doesn't look like there has been any progress on this? Is there any news or update?
     
  8. antoine-unity

    antoine-unity

    Unity Technologies

    Joined:
    Sep 10, 2015
    Posts:
    771
    I can confirm it's still not supported. We're discussing this now internally though.
     
    Findeh and florianBrn like this.
  9. xOrfe

    xOrfe

    Joined:
    Apr 21, 2013
    Posts:
    31
    I look forward to any developments on this topic. It would be very useful.
     
  10. eizenhorn

    eizenhorn

    Joined:
    Oct 17, 2016
    Posts:
    2,683
    Still no UIToolkit support for shader inspectors despite UI Toolkit is default for inspectors now?:(
     
    MaxRoetzler and Qriva like this.