Tanoda
ColorPickerSetup.cs
Go to the documentation of this file.
1using System;
2using UnityEngine;
3using UnityEngine.UI;
4
6{
7 [Serializable]
8 public class ColorPickerSetup
9 {
11 {
12 Hide,
13 ShowColor,
14 ShowColorCode,
15 ShowAll
16 }
17
18 [Serializable]
19 public class UiElements
20 {
21 public RectTransform[] Elements;
22
23
24 public void Toggle(bool active)
25 {
26 for (var cnt = 0; cnt < Elements.Length; cnt++) Elements[cnt].gameObject.SetActive(active);
27 }
28 }
29
30 public bool ShowRgb = true;
31 public bool ShowHsv;
32 public bool ShowAlpha = true;
33 public bool ShowColorBox = true;
34 public bool ShowColorSliderToggle = true;
35
37
42
43
47
50
51 public string PresetColorsId = "default";
53 }
54}
UnityEngine.Color Color
Definition: TestScript.cs:32