Modifier

Partager via


MixedRealityShaderGUI.SetShaderFeatureActive Method

Definition

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

protected:
 static void SetShaderFeatureActive(UnityEngine::Material ^ material, System::String ^ keywordName, System::String ^ propertyName, Nullable<float> propertyValue);
protected static void SetShaderFeatureActive (UnityEngine.Material material, string keywordName, string propertyName, float? propertyValue);
static member SetShaderFeatureActive : UnityEngine.Material * string * string * Nullable<single> -> unit
Protected Shared Sub SetShaderFeatureActive (material As Material, keywordName As String, propertyName As String, propertyValue As Nullable(Of Single))

Parameters

material
UnityEngine.Material

Material to modify

keywordName
String

Keyword of shader feature

propertyName
String

Associated property name for shader feature

propertyValue
Nullable<Single>

float to be treated as a boolean flag for setting shader feature active or inactive

Applies to