FindPassTagValue
Searches for the tag specified by tagName on the shader's active SubShader and returns the value of the tag.
Read time 1 minuteLast updated 11 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
FindPassTagValue(int, ShaderTagId)
Searches for the tag specified by tagName on the shader's active SubShader and returns the value of the tag.
public ShaderTagId FindPassTagValue(int passIndex, ShaderTagId tagName)
Parameters
Returns
Type | Description |
|---|---|
| ShaderTagId |
FindPassTagValue(int, int, ShaderTagId)
Searches for the tag specified by tagName on the SubShader specified by subshaderIndex and returns the value of the tag.
public ShaderTagId FindPassTagValue(int subshaderIndex, int passIndex, ShaderTagId tagName)
Parameters
The index of the SubShader.
The index of the pass.
The name of the tag.
Returns
Type | Description |
|---|---|
| ShaderTagId |