MixedRealityShaderGUI.GetVectorProperty(Material, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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