Graphics, Programming, Unity, Tutorial, Technology.
namespace. There’s a lot to editor scripts, but we only need to use a couple key features. First, override the OnGUI method, which Unity calls whenever it needs to draw a material inspector. We can get the currently viewed material using the target field of MaterialEditor. Before going any further,