Editar

Partilhar via


InteractableThemeShaderUtils.InitMaterialPropertyBlock Method

Definition

Get a MaterialPropertyBlock and copy the designated properties

public:
 static UnityEngine::MaterialPropertyBlock ^ InitMaterialPropertyBlock(UnityEngine::GameObject ^ gameObject, System::Collections::Generic::List<Microsoft::MixedReality::Toolkit::UI::ThemeStateProperty ^> ^ props);
public static UnityEngine.MaterialPropertyBlock InitMaterialPropertyBlock (UnityEngine.GameObject gameObject, System.Collections.Generic.List<Microsoft.MixedReality.Toolkit.UI.ThemeStateProperty> props);
static member InitMaterialPropertyBlock : UnityEngine.GameObject * System.Collections.Generic.List<Microsoft.MixedReality.Toolkit.UI.ThemeStateProperty> -> UnityEngine.MaterialPropertyBlock
Public Shared Function InitMaterialPropertyBlock (gameObject As GameObject, props As List(Of ThemeStateProperty)) As MaterialPropertyBlock

Parameters

gameObject
UnityEngine.GameObject

Returns

UnityEngine.MaterialPropertyBlock

Applies to