docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    DOTS Instancing shader examples

    Examples of using built-in macros to access per-instance data and constant data in DOTS Instancing shaders.

    Page Description
    Example of a DOTS Instancing shader that accesses per-instance data An example of accessing per-instance color data in a DOTS Instancing shader.
    Example of a DOTS Instancing shader that accesses constant data An example of accessing constant color data in a DOTS Instancing shader.
    Example of using UNITY_DOTS_INSTANCED_PROP macros in a DOTS Instancing shader An example of using the UNITY_ACCESS_DOTS_INSTANCED_PROP to specify if a property can be instanced or not at compile time.
    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)