Class MaterialInstanceHelper
Creates material instance for a material associated with a given renderer material index and provide accessor to it.
Inheritance
Inherited Members
Namespace: UnityEngine .XR.Interaction.Toolkit.AffordanceSystem .Rendering
Assembly: Unity.XR.Interaction.Toolkit.dll
Syntax
[AddComponentMenu("Affordance System/Rendering/Material Instance Helper", 12)]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.xr.interaction.toolkit@2.5/api/UnityEngine.XR.Interaction.Toolkit.AffordanceSystem.Rendering.MaterialInstanceHelper.html")]
public class MaterialInstanceHelper : MaterialHelperBase
Methods
Initialize()
Initialize the property block or material instance.
Declaration
protected override void Initialize()
Overrides
OnDestroy()
See Mono
Declaration
protected void OnDestroy()
TryGetMaterialInstance(out Material)
Try to get initialized material instance as configured on the component.
Declaration
public bool TryGetMaterialInstance(out Material materialInstance)