private void Awake()
 {
     instance          = this;
     key               = transform.GetChild(2).gameObject;
     positionComponent = transform.parent.GetChild(3).GetComponent <InputField>();
     colorComponent    = transform.parent.GetChild(4).GetComponent <Image>();
     alphaComponent    = transform.parent.GetChild(5);
     transform.parent.gameObject.SetActive(false);
 }
예제 #2
0
 void ShowGradientPicker()
 {
     GradientPicker.Show(rawValue, true, OnGradientChanged);
 }
 public void ChooseGradientButtonClick()
 {
     GradientPicker.Create(myGradient, "Choose the sphere's color!", SetGradient, GradientFinished);
 }
 void ShowGradientPicker()
 {
     GradientPicker.Show(rawValue, hdr, colorSpace, OnGradientChanged);
 }
예제 #5
0
 private void OnClick()
 {
     GradientPicker.Show(this.m_Value, true, new Action <Gradient>(this.OnGradientChanged));
 }
예제 #6
0
 void OnClick()
 {
     GradientPicker.Show(m_Value, true, OnGradientChanged);
 }