- Home /
Question by
OscarNoguera · Jan 31, 2014 at 05:40 PM ·
shadercustom editorproperty
Shader property default behavior in inspector
Hello,
I have a c# class ( might be to be a script or not, not sure yet... ) that has a public Shader member variable. The problem comes from when this property is shown in the UI, the shader property behavior is different from the one in the MaterialEditor. I've been looking around for a bit, and what seems more related was actually this :
http://answers.unity3d.com/questions/307421/select-shader-in-custom-editor-gui.html
But I would like to use it in the Inspector, as it's by default in the MaterialEditor, and in the previious answer is mentioned to be used as a new GUI setup.
Thanks in advance
Comment
Your answer