Edit

Bagikan melalui


InteractableThemeShaderUtils Class

Definition

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

Applies to