Bearbeiten

Freigeben über


MixedRealityShaderGUI Class

Definition

A custom base shader inspector for Mixed Reality Toolkit shaders.

public ref class MixedRealityShaderGUI abstract : UnityEditor::ShaderGUI
public abstract class MixedRealityShaderGUI : UnityEditor.ShaderGUI
type MixedRealityShaderGUI = class
    inherit ShaderGUI
Public MustInherit Class MixedRealityShaderGUI
Inherits ShaderGUI
Inheritance
UnityEditor.ShaderGUI
MixedRealityShaderGUI
Derived

Constructors

MixedRealityShaderGUI()

Fields

blendOperation
colorWriteMask
cullMode
customRenderingMode
depthOffsetFactor
depthOffsetUnits
depthTest
depthWrite
destinationBlend
initialized
LegacyShadersPath
renderingMode
renderQueueOverride
sourceBlend
TransparentCutoutShadersPath
TransparentShadersPath

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