FindPassTagValue
Searches for the tag specified by tagName on the shader's active SubShader and returns the value of the tag.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
FindPassTagValue(int, ShaderTagId)
Searches for the tag specified by on the shader's active SubShader and returns the value of the tag.
tagNamepublic ShaderTagId FindPassTagValue(int passIndex, ShaderTagId tagName)
Parameters
Returns
Type | Description |
|---|---|
| ShaderTagId |
FindPassTagValue(int, int, ShaderTagId)
Searches for the tag specified by on the SubShader specified by and returns the value of the tag.
tagNamesubshaderIndexpublic 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 |