Skip to main content

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.