InteractableThemeShaderUtils.InitMaterialPropertyBlock 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 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
- props
- List<ThemeStateProperty>
Returns
UnityEngine.MaterialPropertyBlock