/// <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); }
/// <summary> /// Example 2: /// Set position /// Changing the color space texture (index = 1); /// </summary> public void ShowColorPicker2() { picker = AColorPicker.Create(m_ComponentContainer, "AColorPickerUGUI_2_Prefab"); picker.Setup(() => { SetBasicUIVisible(true); }); picker.transform.localPosition = new Vector3(0, -200, 0); picker.ChangePaletteColorTexture(1); SetBasicUIVisible(false); }