Class ColorPicker
Custom MonoBehaviour for the ColorPicker
Namespace: Jotunn.GUI
Assembly: Jotunn.dll
Syntax
public class ColorPicker : MonoBehaviour
Fields
Name | Description |
---|---|
aComponent | Component ref |
bComponent | Component ref |
colorComponent | Component ref |
done | |
gComponent | Component ref |
hexaComponent | Component ref |
mainComponent | Component ref |
positionIndicator | Component ref |
rComponent | Component ref |
Methods
Name | Description |
---|---|
CCancel() | Cancel button call |
CDone() | Done button call |
Cancel() | Manually cancel the ColorPicker and recover the default value |
Create(Color, string, ColorEvent, ColorEvent, bool) | Creates a new Colorpicker |
Done() | Manually close the ColorPicker and apply the selected color |
SetA(float) | Gets a Slider value |
SetA(string) | Gets a InputField value |
SetB(float) | Gets b Slider value |
SetB(string) | Gets b InputField value |
SetChooser() | Used by EventTrigger to calculate the chosen value in color box |
SetG(float) | Gets g Slider value |
SetG(string) | Gets g InputField value |
SetHexa(string) | Gets hexa InputField value |
SetMain(float) | Gets main Slider value |
SetR(float) | Gets r Slider value |
SetR(string) | Gets r InputField value |