UIRectEditor.GetRect C# (CSharp) Method

GetRect() static protected method

Pass something like leftAnchor.target to get its rectangle reference.
static protected GetRect ( UnityEditor.SerializedProperty sp ) : UIRect,
sp UnityEditor.SerializedProperty
return UIRect,
	static protected UIRect GetRect (SerializedProperty sp)
	{
		Transform target = sp.objectReferenceValue as Transform;
		if (target == null) return null;
		return target.GetComponent<UIRect>();
	}