Editar

Compartilhar via


MixedRealityShaderGUI.GetVectorProperty(Material, String) Method

Definition

Get the value of a given vector property for a material

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

Parameters

material
UnityEngine.Material

material to check

propertyName
String

name of property against material

Returns

Nullable<UnityEngine.Vector4>

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

Applies to