Skip to main content

Material.GetPassName(number pass)

Returns the name of the shader pass at index pass.

Parameters:

NameTypeDescription
passnumberpass index

Returns:

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

Usage

---@type Material
local material;

---@type number
local pass;


local val0 = material.GetPassName(pass)