docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface ICustomColorGradientFieldPicker

    Interface for the editor a ColorGradientField opens when it is pressed.

    Namespace: Unity.AppUI.UI
    Assembly: Unity.AppUI.dll
    Syntax
    public interface ICustomColorGradientFieldPicker
    Remarks

    Mirrors ICustomColorFieldPicker. There is no default implementation because UITK has no GradientEditor yet; until one lands, assign this to host the Editor's own gradient editor, or leave it null and the field is a read-only gradient well.

    Methods

    Show(ColorGradientField, Action<Gradient>, Gradient, bool)

    Show the gradient editor.

    Declaration
    void Show(ColorGradientField owner, Action<Gradient> onValueChanging, Gradient initialValue, bool hdr)
    Parameters
    Type Name Description
    ColorGradientField owner

    The field that requested the editor.

    Action<Gradient> onValueChanging

    Callback invoked as the user edits. Sends a ChangingEvent<TValue>.

    Gradient initialValue

    The gradient assigned when the editor opened.

    bool hdr

    Whether the editor should allow HDR color keys.

    In This Article
    Back to top
    Copyright © 2026 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)