
This tutorial explains how to create custom material inspectors for your shaders in Unity 5.
- Introduction
- Step 1. The Setup
- Step 2. Finding Properties
- Step 3. Toggles
- Step 4. Conditions
- Conclusion
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.