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