/// <summary>
 /// Sets the min and max anchor values for specified anchor type.
 /// </summary>
 public static void SetAnchor(this RectTransform context, AnchorType anchor)
 {
     context.anchorMin = GraphicHelper.GetMinAnchor(anchor);
     context.anchorMax = GraphicHelper.GetMaxAnchor(anchor);
 }
 /// <summary>
 /// Sets the pivot values for specified anchor
 /// </summary>
 public static void SetPivot(this RectTransform context, PivotType pivot)
 {
     context.pivot = GraphicHelper.GetPivot(pivot);
 }