public static Vector2 GetPivot(this MaskableGraphic graphic) { return(graphic.Get <RectTransform>().pivot); }
public static Vector2 GetSize(this MaskableGraphic graphic) { return(graphic.Get <RectTransform>().sizeDelta); }
public static void SetSize(this MaskableGraphic graphic, Vector2 size) { graphic.Get <RectTransform>().sizeDelta = size; }
public static void SetPivot(this MaskableGraphic graphic, Vector2 pivot) { graphic.Get <RectTransform>().pivot = pivot; }