Legacy Documentation: Version 5.6 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Material.GetPassName

Switch to Manual
public string GetPassName(int pass);

Description

Returns the name of the shader pass at index pass.

Returns the name of the shader pass at index pass. It will return an empty string if the pass does not exist.

See Also: FindPass.