docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Instance ID Node

    Description

    When Unity renders with GPU instancing, it assigns an Instance ID to each geometry.

    Use this node to capture Instance ID values in Graphics.DrawMeshInstanced API calls.

    When Unity does not render with GPU instancing, this ID is 0.

    When Unity uses dynamic instancing, instance IDs might not be consistent across multiple frames.

    Ports

    Name Direction Type Binding Description
    Out Output Float None Instance ID for mesh of a given instanced draw call.
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)