/// <summary> /// Determine the initial anchor type. /// </summary> protected virtual void OnEnable () { instance = this; if (serializedObject.isEditingMultipleObjects) { mAnchorType = AnchorType.Advanced; } else ReEvaluateAnchorType(); }
/// <summary> /// Determine the initial anchor type. /// </summary> protected virtual void OnEnable() { instance = this; if (serializedObject.isEditingMultipleObjects) { mAnchorType = AnchorType.Advanced; } else { ReEvaluateAnchorType(); } }
/// <summary> /// Determine the initial anchor type. /// </summary> protected virtual void OnEnable() { instance = this; if (serializedObject.isEditingMultipleObjects) { mAnchorType = AnchorType.Advanced; SideType = UIRect.EnumSideType.AdaptTwoSide; } else { UIRect rect = target as UIRect; SideType = rect.SideType; ReEvaluateAnchorType(); } }
/// <summary> /// Determine the initial anchor type. /// </summary> protected virtual void OnEnable() { instance = this; if (serializedObject.isEditingMultipleObjects) { mAnchorType = AnchorType.Advanced; ForceSide = false; } else { UIRect rect = target as UIRect; ForceSide = rect.ForceSide; ReEvaluateAnchorType(); } }
/// <summary> /// Clear the instance reference. /// </summary> protected virtual void OnDisable () { instance = null; }
/// <summary> /// Determine the initial anchor type. /// </summary> protected virtual void OnEnable() { instance = this; }
/// <summary> /// Clear the instance reference. /// </summary> protected virtual void OnDisable() { instance = null; }