docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetColorFromIndex

    GetColorFromIndex(int)

    Returns a unique color associated with an index

    Declaration
    public Color GetColorFromIndex(int index)
    Parameters
    Type Name Description
    int index

    Index of the color (index must be less than 2^24)

    Returns
    Type Description
    Color
    In This Article
    Back to top
    Copyright © 2024 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)