Version: 2023.1

Shader.FindPassTagValue

切换到手册
public Rendering.ShaderTagId FindPassTagValue (int passIndex, Rendering.ShaderTagId tagName);

参数

passIndex 通道的索引。
tagName The name of the tag.

描述

Searches for the tag specified by tagName on the shader's active SubShader and returns the value of the tag.


public Rendering.ShaderTagId FindPassTagValue (int subshaderIndex, int passIndex, Rendering.ShaderTagId tagName);

参数

subshaderIndex The index of the SubShader.
passIndex 通道的索引。
tagName The name of the tag.

描述

Searches for the tag specified by tagName on the SubShader specified by subshaderIndex and returns the value of the tag.