Editar

Compartir a través de


InteractableThemeShaderUtils.GetValidMaterial(Renderer) Method

Definition

Grab the shared material to avoid creating new material instances and breaking batching. Because MaterialPropertyBlocks are used for setting material properties the shared material is used to set the initial state of the MaterialPropertyBlock(s) before mutating state.

public:
 static UnityEngine::Material ^ GetValidMaterial(UnityEngine::Renderer ^ renderer);
public static UnityEngine.Material GetValidMaterial (UnityEngine.Renderer renderer);
static member GetValidMaterial : UnityEngine.Renderer -> UnityEngine.Material
Public Shared Function GetValidMaterial (renderer As Renderer) As Material

Parameters

renderer
UnityEngine.Renderer

Returns

UnityEngine.Material

Applies to