Tag: OnGUI

  • ShaderGUI: Custom Material Inspectors in Unity

    ShaderGUI: Custom Material Inspectors in Unity

    This tutorial explains how to create custom material inspectors for your shaders in Unity 5. This is a tutorial for Unity 5: Unity 4 used MaterialEditor (legacy documentation here) to customise a material’s inspector. That is now deprecated; you should use the new ShaderGUI (documentation here) instead.