Bearbeiten

Freigeben über


MixedRealityShaderGUI.GetColorProperty(Material, String) Method

Definition

Get the value of a given color property for a material

protected:
 static Nullable<UnityEngine::Color> GetColorProperty(UnityEngine::Material ^ material, System::String ^ propertyName);
protected static UnityEngine.Color? GetColorProperty (UnityEngine.Material material, string propertyName);
static member GetColorProperty : UnityEngine.Material * string -> Nullable<UnityEngine.Color>
Protected Shared Function GetColorProperty (material As Material, propertyName As String) As Nullable(Of Color)

Parameters

material
UnityEngine.Material

material to check

propertyName
String

name of property against material

Returns

Nullable<UnityEngine.Color>

if has property, then value of that property for current material, null otherwise

Applies to