Class ColorPicker

Namespace
OvrleUI
Assembly
OvrleUI.dll
[ExecuteAlways]
public class ColorPicker : MonoBehaviour
Inheritance
Object
Component
Behaviour
MonoBehaviour
ColorPicker
Inherited Members
MonoBehaviour.IsInvoking()
MonoBehaviour.CancelInvoke()
MonoBehaviour.StopCoroutine(Coroutine)
MonoBehaviour.StopAllCoroutines()
MonoBehaviour.destroyCancellationToken
MonoBehaviour.useGUILayout
MonoBehaviour.runInEditMode
Behaviour.enabled
Behaviour.isActiveAndEnabled
Component.GetComponent<T>()
Component.TryGetComponent<T>(out T)
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren<T>()
Component.GetComponentInParent<T>()
Component.GetComponentsInParent<T>()
Component.GetComponents<T>()
Component.GetComponentIndex()
Component.transform
Component.gameObject
Component.tag
Object.GetInstanceID()
Object.GetHashCode()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Scene)
Object.Instantiate(Object, Transform)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DontDestroyOnLoad(Object)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindObjectOfType<T>()
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Object.ToString()
Object.name
Object.hideFlags

Fields

OnChange

Call when color is changed.

public UnityEvent<Color> OnChange

Field Value

UnityEvent<Color>

backgroundColor

[Header("Appearance")]
public Color backgroundColor

Field Value

Color

hoverBackgroundColor

public Color hoverBackgroundColor

Field Value

Color

Properties

color

public Color color { get; set; }

Property Value

Color

isEnabled

If false, this slider can not be interacted.

public bool isEnabled { get; set; }

Property Value

bool

Methods

OnButtonClick()

public void OnButtonClick()

OnPointerEnter()

public void OnPointerEnter()

OnPointerExit()

public void OnPointerExit()

SetValue(Color, bool)

Set value with a bool parameter that indicates whether to trigger onChange event. Basically you can directory assign value to the value property, but this method is useful when you want to change value without triggering onChange event.

public void SetValue(Color color, bool triggerEvent = true)

Parameters

color Color

color

triggerEvent bool

If false, onChange() event is skipped.