docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ToHex

    ToHex(Color)

    Converts a color value to its 32-bit hexadecimal representation.

    Declaration
    public static uint ToHex(Color c)
    Parameters
    Type Name Description
    Color c

    The color to convert.

    Returns
    Type Description
    uint

    A 32-bit hexadecimal representation of the color.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)