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 |