public void ShowColorPicker2()
 {
     picker = AColorPicker.Create(m_ComponentContainer, "AColorPickerUGUI_2_Prefab");
     picker.Setup(() => {
         SetBasicUIVisible(true);
     });
     picker.transform.localPosition = new Vector3(0, -200, 0);
     SetBasicUIVisible(false);
 }
 /// <summary>
 /// Example 3:
 /// Place the picker under the root(parent == null);
 /// Enabling/Disabling the alpha slider;
 /// Changing the color space textures;
 /// </summary>
 public void ShowColorPicker3()
 {
     picker = AColorPicker.Create(null, "AColorPickerUGUI_AutoFit_Prefab");
     picker.Setup(hasAlpha, hasPickerRect, () => {
         SetBasicUIVisible(true);
     });
     picker.ChangePaletteColorTexture(paletteTextureIndex);
     SetBasicUIVisible(false);
 }
Exemple #3
0
 void Start()
 {
     picker = AColorPicker.Create(null);
     picker.Setup(null);
 }