Class ColorPalette
- Namespace
- Reko.ColorPicker
- Assembly
- ColorPicker.dll
public class ColorPalette : MonoBehaviour, IColorPalette, ISingleInput<Color>
- Inheritance
-
ColorPalette
- Implements
- Inherited Members
-
MonoBehaviour.IsInvoking()MonoBehaviour.StopCoroutine(Coroutine)MonoBehaviour.StopAllCoroutines()MonoBehaviour.runInEditModeComponent.GetComponent<T>()Component.GetComponentInChildren<T>()Component.GetComponentsInChildren<T>()Component.GetComponentsInParent<T>()Component.GetComponentIndex()Component.transformComponent.gameObjectComponent.tagObject.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)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.DestroyObject(Object)Object.FindObjectsOfType<T>()Object.nameObject.hideFlags
Properties
Colors
public IEnumerable<Color> Colors { get; }
Property Value
HasSelection
public bool HasSelection { get; }
Property Value
Value
public Color Value { get; set; }
Property Value
onValueChanged
public UnityEvent<Color> onValueChanged { get; }
Property Value
- UnityEvent<Color>
Methods
ContainsColor(Color)
public bool ContainsColor(Color color)
Parameters
color
Color
Returns
SelectIndex(int)
public void SelectIndex(int index)
Parameters
index
int
SetValueWithoutNotify(Color)
public void SetValueWithoutNotify(Color value)
Parameters
value
Color
UpdatePaletteItems()
public void UpdatePaletteItems()