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. |