MixedRealityShaderGUI Class

Definition

A custom base shader inspector for Mixed Reality Toolkit shaders.

C++
public ref class MixedRealityShaderGUI abstract : UnityEditor::ShaderGUI
Inheritance
UnityEditor.ShaderGUI
MixedRealityShaderGUI
Derived

Constructors

Fields

Methods

FindProperties(MaterialProperty[])
GetColorProperty(Material, String)

Get the value of a given color property for a material

GetFloatProperty(Material, String)

Get the value of a given float property for a material

GetVectorProperty(Material, String)

Get the value of a given vector property for a material

Initialize(Material)
MaterialChanged(Material)
OnGUI(MaterialEditor, MaterialProperty[])
PropertyEnabled(MaterialProperty)

Check whether shader feature is enabled

RenderingModeOptions(MaterialEditor)
SetColorProperty(Material, String, Nullable<Color>)

Set color property against associated material

SetShaderFeatureActive(Material, String, String, Nullable<Single>)

Sets the shader feature controlled by keyword and property name parameters active or inactive

SetupMaterialWithRenderingMode(Material, MixedRealityShaderGUI+RenderingMode, MixedRealityShaderGUI+CustomRenderingMode, Int32)
SetVectorProperty(Material, String, Nullable<Vector4>)

Sets vector property against associated material

Applies to

Product Versions
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0