InteractableThemeShaderUtils Class
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.
Collection of shader and material utilities
public ref class InteractableThemeShaderUtils abstract sealed
public static class InteractableThemeShaderUtils
type InteractableThemeShaderUtils = class
Public Class InteractableThemeShaderUtils
- Inheritance
-
InteractableThemeShaderUtils
Methods
GetPropertyBlock(GameObject) |
Get the MaterialPropertyBlock from a renderer on a gameObject |
GetValidMaterial(Renderer) |
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. |
InitMaterialPropertyBlock(GameObject, List<ThemeStateProperty>) |
Get a MaterialPropertyBlock and copy the designated properties |