Interface ICustomColorFieldPicker
Interface for custom ColorField pickers.
Namespace: Unity.AppUI.UI
Assembly: Unity.AppUI.dll
Syntax
public interface ICustomColorFieldPicker
Methods
Show(ColorField, Action<Color>, Color, bool, bool)
Delegate method to show the custom ColorPicker.
Declaration
void Show(ColorField owner, Action<Color> onValueChanging, Color initialColor, bool showAlpha, bool hdr)
Parameters
| Type | Name | Description |
|---|---|---|
| ColorField | owner | The owner ColorField. |
| Action<Color> | onValueChanging | Callback when the color value has changed. It will send a value changing event. |
| Color | initialColor | The initial color to show in the ColorPicker. |
| bool | showAlpha | Whether to show the alpha channel in the ColorPicker. |
| bool | hdr | Whether to show HDR colors in the ColorPicker. |