StandardShaderUtility.IsUsingGraphicsToolsStandardShader(Material) Method

Definition

Checks if a material is using the Graphics Tools/Standard or Standard Canvas shader.

public static bool IsUsingGraphicsToolsStandardShader (UnityEngine.Material material);
static member IsUsingGraphicsToolsStandardShader : UnityEngine.Material -> bool
Public Shared Function IsUsingGraphicsToolsStandardShader (material As Material) As Boolean

Parameters

material
UnityEngine.Material

The material to check.

Returns

True if the material is using the shader

Applies to