Custom Inspector for ShaderGui?

there is no

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?

It’s on our radar but not a priority just yet. You’ll have to stick to IMGUI for material inspectors for now.

1 Like

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

6192906--679164--Screenshot 2020-08-11 at 20.25.07.png

I assume you mean IMGUI, not ugui (also known as Unity UI). For IMGUI questions, please create a new thread in this forum:
https://forum.unity.com/forums/immediate-mode-gui-imgui.25/

+1 for UI Toolkit support for custom material editors.

2022 now, When will this function be delivered?

@uDamian two years later and it still doesn’t look like there has been any progress on this? Is there any news or update?

I can confirm it’s still not supported. We’re discussing this now internally though.

2 Likes

I look forward to any developments on this topic. It would be very useful.

Still no UIToolkit support for shader inspectors despite UI Toolkit is default for inspectors now?:frowning:

2 Likes