InteractableThemeShaderUtils.GetValidMaterial(Renderer) 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.
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