GetPassName
7/14/25Less than 1 minute
Material.GetPassName(number pass)
Returns the name of the shader pass at index pass.
Parameters:
| Name | Type | Description |
|---|---|---|
| pass | number | pass index |
Returns:
| type | Description |
|---|---|
| string | the 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)
