Example #1
0
	/// <summary>
	/// Determine the initial anchor type.
	/// </summary>

	protected virtual void OnEnable ()
	{
		instance = this;

		if (serializedObject.isEditingMultipleObjects)
		{
			mAnchorType = AnchorType.Advanced;
		}
		else ReEvaluateAnchorType();
	}
Example #2
0
    /// <summary>
    /// Determine the initial anchor type.
    /// </summary>
    protected virtual void OnEnable()
    {
        instance = this;

        if (serializedObject.isEditingMultipleObjects)
        {
            mAnchorType = AnchorType.Advanced;
        }
        else
        {
            ReEvaluateAnchorType();
        }
    }
Example #3
0
    /// <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();
        }
    }
Example #4
0
    /// <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();
        }
    }
Example #5
0
	/// <summary>
	/// Clear the instance reference.
	/// </summary>

	protected virtual void OnDisable () { instance = null; }
Example #6
0
    /// <summary>
    /// Determine the initial anchor type.
    /// </summary>

    protected virtual void OnEnable()
    {
        instance = this;
    }
Example #7
0
    /// <summary>
    /// Clear the instance reference.
    /// </summary>

    protected virtual void OnDisable()
    {
        instance = null;
    }