docs.unity3d.com
    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.
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023