public override void OnGUIRow(ShaderGUITreeView treeView) { var tex = treeView.GetRegisteredProperty(textureProperty); var col = treeView.GetRegisteredProperty(colorProperty); treeView.materialEditor.TexturePropertyWithHDRColor(this.labelContent, tex, col, null, this.showAlpha); }
public override void OnGUIRow(ShaderGUITreeView treeView) { var editor = treeView.materialEditor; var texProp = treeView.GetRegisteredProperty(this.textureProperty); var ex1 = treeView.GetRegisteredProperty(this.extraProperty1); var ex2 = treeView.GetRegisteredProperty(this.extraProperty2); editor.TexturePropertyTwoLines(this.labelContent, texProp, ex1, this.labelContant2, ex2); }
public override void OnGUIRow(ShaderGUITreeView treeView) { var editor = treeView.materialEditor; var tex = treeView.GetRegisteredProperty(textureProperty); var ex1 = treeView.GetRegisteredProperty(extraProperty1); var ex2 = treeView.GetRegisteredProperty(extraProperty2); editor.TexturePropertySingleLine(this.labelContent, tex, ex1, ex2); }
public override void OnGUIRow(ShaderGUITreeView treeView) { var prop = treeView.GetRegisteredProperty(property); var label = this.labelContent == null ? prop.displayName : labelContent.text; treeView.materialEditor.ShaderProperty(prop, label); }
public override void OnGUIRow(ShaderGUITreeView treeView) { var editor = treeView.materialEditor; var texProp = treeView.GetRegisteredProperty(textureProperty); editor.TextureScaleOffsetProperty(texProp); }