Exemplo n.º 1
0
 /// <summary>
 /// 调整大小和位置
 /// </summary>
 /// <param name="_trans"></param>
 /// <param name="_anchor">锚点位置</param>
 /// <param name="offsetMin">左下脚坐标</param>
 /// <param name="offsetMax">右上角坐标</param>
 public static void Resize(this RectTransform _trans, Anchor _anchor, Vector2 offsetMin, Vector2 offsetMax)
 {
     _trans.Resize(_anchor.Min, _anchor.Max, offsetMin, offsetMax);
 }
		public UIAnimationSequence Resize(RectTransform transform, float duration, Vector2 from, Vector2 to, Func<float, float> easingFunction = null)
		{
			UIResizeAnimation animation = transform.Resize(duration, from, to, easingFunction);
			Animations.Add(animation);
			return this;
		}