예제 #1
0
 public ShaderHeader(ShaderEditor shaderEditor, MaterialProperty prop, MaterialEditor materialEditor, string displayName, int xOffset, PropertyOptions options) : base(shaderEditor, prop, materialEditor, displayName, xOffset, options)
 {
     if (DrawingData.lastPropertyDrawerType == DrawerType.Header)
     {
         //new header setup with drawer
         this.headerDrawer = DrawingData.lastPropertyDrawer as ThryHeaderDrawer;
     }
     else
     {
         //legacy setup with HideInInspector
         this.headerDrawer = new ThryHeaderDrawer();
         isLegacy          = true;
     }
     this.headerDrawer.xOffset = xOffset;
 }
예제 #2
0
 public ShaderHeader(ShaderEditor shaderEditor) : base(shaderEditor)
 {
     this.headerDrawer = new ThryHeaderDrawer();
 }