Beispiel #1
0
 /// <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);
 }
Beispiel #2
0
        /// <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);
        }