文档

Unity Engine

Unity Engine

FindPass(string)

Returns the index of the pass passName.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public int FindPass(string passName)

Parameters

passName

Returns

Type

Description

int

Remarks

Returns the index of the pass
passName
. -1 if it does not exist. Additional Resources: Material.GetPassName