Skip to main content
Version: 5.x

Nodes > Inputs > Shader > Instance ID

Instance ID

Returns the Instance ID of the currently drawn instance. Useful when the material's "Instance Count" is greater than 1, which causes multiple instances of the mesh to be drawn.

Instance IDs are whole numbers ranging from 0 to n-1, where n is the "Instance Count" of the material.

Outputs

NameTypeDescription
Instance IDfloatIndex of the currently drawn instance, ranging from 0 to Instance Count -1.
Was this page helpful?
Yes
No