Version: 2018.2

ShaderData

class in UnityEditor

Switch to Manual

Description

This class describes a shader.

Variables

ActiveSubshaderReturns the active subshader or null if none is currently active.
ActiveSubshaderIndexReturns the index of the active subshader or -1 if none is currently active.
SourceShaderThe shader attached to this data set.
SubshaderCountThe number of subshaders used by this shader.

Public Functions

GetSubshaderGet a subshader.