/// <summary> /// この関数はILayoutTarget.UpdateLocalSizeWithAnchorParam(self.AnchorMin, self.AnchorMax, min, max)と同じです。 /// </summary> /// <param name="self"></param> /// <param name="min"></param> /// <param name="max"></param> public static void SetAnchorOffset(this ILayoutTarget self, Vector3 min, Vector3 max) { self.UpdateAnchorParam(self.AnchorMin, self.AnchorMax, min, max); }
/// <summary> /// この関数はILayoutTarget.UpdateLocalSizeWithAnchorParam(min, max, self.AnchorOffsetMin, self.AnchorOffsetMax)と同じです。 /// </summary> /// <param name="self"></param> /// <param name="min"></param> /// <param name="max"></param> public static void SetAnchor(this ILayoutTarget self, Vector3 min, Vector3 max) { var offset = self.AnchorOffsetMinMax(); self.UpdateAnchorParam(min, max, offset.offsetMin, offset.offsetMax); }