docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method RegisterPreferenceColor

    RegisterPreferenceColor(string, Color)

    Adds a UnityEditor.PrefColor into the Preferences > Colors panel./>

    Declaration
    public static Func<Color> RegisterPreferenceColor(string name, Color defaultColor)
    Parameters
    Type Name Description
    string name

    The name the color has in the Colors panel. This is in the format of 'group/name'.

    Color defaultColor

    The initial color to use for the new entry in the Colors panel. This is also the value Unity uses when it resets the colors to their defaults.

    Returns
    Type Description
    Func<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)