Exemple #1
0
 public static Vector2 GetPivot(this MaskableGraphic graphic)
 {
     return(graphic.Get <RectTransform>().pivot);
 }
Exemple #2
0
 public static Vector2 GetSize(this MaskableGraphic graphic)
 {
     return(graphic.Get <RectTransform>().sizeDelta);
 }
Exemple #3
0
 public static void SetSize(this MaskableGraphic graphic, Vector2 size)
 {
     graphic.Get <RectTransform>().sizeDelta = size;
 }
Exemple #4
0
 public static void SetPivot(this MaskableGraphic graphic, Vector2 pivot)
 {
     graphic.Get <RectTransform>().pivot = pivot;
 }