docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetPackedColorFromColor

    GetPackedColorFromColor(Color32)

    Packs a color32 (RGBA - 1 byte per channel) into a 32bit unsigned integer.

    Declaration
    public static uint GetPackedColorFromColor(Color32 color)
    Parameters
    Type Name Description
    Color32 color

    The RGBA color.

    Returns
    Type Description
    uint

    The packed unsigned int 32 of the 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)