Esempio n. 1
0
 public override void OnInspectorGUI()
 {
     DrawDefaultInspector();
     if (GUI.changed)
     {
         pivot.Reposition();
     }
 }
Esempio n. 2
0
 protected override void DoLayout()
 {
     if (anchor == null || pivot == null)
     {
         return;
     }
     anchor.enabled = true;
     pivot.InvalidateLayout();
     pivot.Reposition();
     pivot.transform.localPosition = Vector3.zero;
 }
Esempio n. 3
0
 void OnEnable()
 {
     pivot = (UIPivot)target;
     pivot.Reposition();
 }