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