/// <summary> /// Applies a gradient of colors to the Material over time. /// </summary> static public Tween Gradient(this Material inMaterial, Gradient inGradient, TweenSettings inSettings, ColorUpdate inUpdate = ColorUpdate.PreserveAlpha) { return(Tween.Create(new TweenData_Material_Gradient(inMaterial, inGradient, inUpdate), inSettings)); }
/// <summary> /// Moves the given RectTransform's pivot to another point over time. /// </summary> static public Tween PivotTo(this RectTransform inTransform, float inTarget, TweenSettings inSettings, Axis inAxis) { return(Tween.Create(new TweenData_RectTransform_PivotFixed(inTransform, new Vector2(inTarget, inTarget), inAxis), inSettings)); }
/// <summary> /// Transforms the RectTransform to another RectTransform over time. /// </summary> static public Tween RectTransformTo(this RectTransform inTransform, RectTransformState inTarget, float inTime, RectTransformProperties inProperties = RectTransformProperties.All) { return(Tween.Create(new TweenData_RectTransform_RectTransformState(inTransform, inTarget, inProperties), inTime)); }
/// <summary> /// Scales the given RectTransform to another sizeDelta over time. /// </summary> static public Tween SizeDeltaTo(this RectTransform inTransform, Vector2 inTarget, TweenSettings inSettings, Axis inAxis = Axis.XY) { return(Tween.Create(new TweenData_RectTransform_SizeDeltaFixed(inTransform, inTarget, inAxis), inSettings)); }
/// <summary> /// Scales the given RectTransform to the sizeDelta of another RectTransform over time. /// </summary> static public Tween SizeDeltaTo(this RectTransform inTransform, RectTransform inTarget, float inTime, Axis inAxis = Axis.XY) { return(Tween.Create(new TweenData_RectTransform_SizeDeltaDynamic(inTransform, inTarget, inAxis), inTime)); }
/// <summary> /// Changes the volume of the AudioSource over time. /// </summary> static public Tween VolumeTo(this AudioSource inSource, float inTarget, TweenSettings inSettings) { return(Tween.Create(new TweenData_AudioSource_Volume(inSource, inTarget), inSettings)); }
/// <summary> /// Moves the RectTransform's anchors to a single point over time. /// </summary> static public Tween AnchorTo(this RectTransform inTransform, Vector2 inTarget, float inTime, Axis inAxis = Axis.XY) { return(Tween.Create(new TweenData_RectTransform_AnchorFixed(inTransform, new Vector4(inTarget.x, inTarget.y, inTarget.x, inTarget.y), inAxis), inTime)); }
/// <summary> /// Fades the Graphic to another alpha over time. /// </summary> static public Tween FadeTo(this CanvasRenderer inRenderer, float inAlpha, float inTime) { return(Tween.Create(new TweenData_CanvasRenderer_Alpha(inRenderer, inAlpha), inTime)); }
/// <summary> /// Fades the Graphic to another color over time. /// </summary> static public Tween ColorTo(this CanvasRenderer inRenderer, Color inTarget, TweenSettings inSettings, ColorUpdate inUpdate = ColorUpdate.PreserveAlpha) { return(Tween.Create(new TweenData_CanvasRenderer_Color(inRenderer, inTarget, inUpdate), inSettings)); }
/// <summary> /// Shifts the Image's fillAmount over time. /// </summary> static public Tween FillTo(this Image inRenderer, float inFillAmount, TweenSettings inSettings) { return(Tween.Create(new TweenData_Image_FillAmount(inRenderer, inFillAmount), inSettings)); }
/// <summary> /// Shifts the RawImage's uvRect over time. /// </summary> static public Tween UVRectTo(this RawImage inRenderer, Rect inTarget, TweenSettings inSettings, Axis inAxis = Axis.XY) { return(Tween.Create(new TweenData_RawImage_UVRect(inRenderer, inTarget, inAxis), inSettings)); }
/// <summary> /// Applies a gradient of colors to the Graphic over time. /// </summary> static public Tween Gradient(this Graphic inRenderer, Gradient inGradient, float inTime, ColorUpdate inUpdate = ColorUpdate.PreserveAlpha) { return(Tween.Create(new TweenData_Graphic_Gradient(inRenderer, inGradient, inUpdate), inTime)); }
/// <summary> /// Fades the Graphic to another color over time. /// </summary> static public Tween ColorTo(this Graphic inRenderer, Color inTarget, float inTime, ColorUpdate inUpdate = ColorUpdate.PreserveAlpha) { return(Tween.Create(new TweenData_Graphic_Color(inRenderer, inTarget, inUpdate), inTime)); }
/// <summary> /// Fades the Graphic to another alpha over time. /// </summary> static public Tween FadeTo(this Graphic inRenderer, float inAlpha, TweenSettings inSettings) { return(Tween.Create(new TweenData_Graphic_Alpha(inRenderer, inAlpha), inSettings)); }
/// <summary> /// Changes the Scrollbar's size to another size over time. /// </summary> static public Tween SizeTo(this Scrollbar inScrollbar, float inSize, TweenSettings inSettings) { return(Tween.Create(new TweenData_Scrollbar_Size(inScrollbar, inSize), inSettings)); }
/// <summary> /// Applies a gradient of colors to the Graphic over time. /// </summary> static public Tween Gradient(this CanvasRenderer inRenderer, Gradient inGradient, TweenSettings inSettings, ColorUpdate inUpdate = ColorUpdate.PreserveAlpha) { return(Tween.Create(new TweenData_CanvasRenderer_Gradient(inRenderer, inGradient, inUpdate), inSettings)); }
/// <summary> /// Changes the panning of the AudioSource over time. /// </summary> static public Tween PanTo(this AudioSource inSource, float inTarget, float inTime) { return(Tween.Create(new TweenData_AudioSource_Pan(inSource, inTarget), inTime)); }
/// <summary> /// Changes the ScrollRect's normalized position to another value over time. /// </summary> static public Tween NormalizedPosTo(this ScrollRect inScrollRect, Vector2 inPosition, TweenSettings inSettings, Axis inAxis = Axis.XY) { return(Tween.Create(new TweenData_ScrollRect_NormalizedPos(inScrollRect, inPosition, inAxis), inSettings)); }
/// <summary> /// Moves the RectTransform to another anchor with the given average speed. /// Note: Duration is calculated at call time, not when the tween starts. /// </summary> static public Tween AnchorPosToWithSpeed(this RectTransform inTransform, Vector2 inTarget, float inSpeed, Axis inAxis = Axis.XY) { float distance = (inTarget - inTransform.anchoredPosition).magnitude; return(Tween.Create(new TweenData_RectTransform_AnchorPosFixed(inTransform, inTarget, inAxis), distance <= 0 ? 0 : distance / inSpeed)); }
/// <summary> /// Changes the ScrollRect's normalized position to another value over time. /// </summary> static public Tween NormalizedPosTo(this ScrollRect inScrollRect, float inPositionAxis, TweenSettings inSettings, Axis inAxis) { return(Tween.Create(new TweenData_ScrollRect_NormalizedPos(inScrollRect, new Vector2(inPositionAxis, inPositionAxis), inAxis), inSettings)); }
/// <summary> /// Moves the RectTransform's anchors to a set of points over time. /// </summary> static public Tween AnchorTo(this RectTransform inTransform, Vector4 inTarget, TweenSettings inSettings, Axis inAxis = Axis.XY) { return(Tween.Create(new TweenData_RectTransform_AnchorFixed(inTransform, inTarget, inAxis), inSettings)); }
/// <summary> /// Fades the CanvasGroup to another alpha over time. /// </summary> static public Tween FadeTo(this CanvasGroup inRenderer, float inAlpha, TweenSettings inSettings) { return(Tween.Create(new TweenData_CanvasGroup_Alpha(inRenderer, inAlpha), inSettings)); }
/// <summary> /// Scales the given RectTransform to another sizeDelta over time. /// </summary> static public Tween SizeDeltaTo(this RectTransform inTransform, float inTarget, float inTime, Axis inAxis) { return(Tween.Create(new TweenData_RectTransform_SizeDeltaFixed(inTransform, new Vector2(inTarget, inTarget), inAxis), inTime)); }
/// <summary> /// Changes the Slider's value to another value over time. /// </summary> static public Tween ValueTo(this Slider inSlider, float inValue, float inTime) { return(Tween.Create(new TweenData_Slider_Value(inSlider, inValue), inTime)); }
/// <summary> /// Moves the given RectTransform's pivot to another point over time. /// </summary> static public Tween PivotTo(this RectTransform inTransform, Vector2 inTarget, float inTime, Axis inAxis = Axis.XY) { return(Tween.Create(new TweenData_RectTransform_PivotFixed(inTransform, inTarget, inAxis), inTime)); }
/// <summary> /// Changes the Slider's normalized value to another value over time. /// </summary> static public Tween NormalizedValueTo(this Slider inSlider, float inNormalizedValue, TweenSettings inSettings) { return(Tween.Create(new TweenData_Slider_NormalizedValue(inSlider, inNormalizedValue), inSettings)); }
/// <summary> /// Moves the given RectTransform's pivot to the pivot of another RectTransform over time. /// </summary> static public Tween PivotTo(this RectTransform inTransform, RectTransform inTarget, TweenSettings inSettings, Axis inAxis = Axis.XY) { return(Tween.Create(new TweenData_RectTransform_PivotDynamic(inTransform, inTarget, inAxis), inSettings)); }
/// <summary> /// Changes the Scrollbar's value to another value over time. /// </summary> static public Tween ValueTo(this Scrollbar inScrollbar, float inValue, float inTime) { return(Tween.Create(new TweenData_Scrollbar_Value(inScrollbar, inValue), inTime)); }
/// <summary> /// Transforms the RectTransform to another RectTransform over time. /// </summary> static public Tween RectTransformTo(this RectTransform inTransform, RectTransform inTarget, TweenSettings inSettings, RectTransformProperties inProperties = RectTransformProperties.All) { return(Tween.Create(new TweenData_RectTransform_Transform(inTransform, inTarget, inProperties), inSettings)); }
/// <summary> /// Fades the Material to another color over time. /// </summary> static public Tween ColorTo(this Material inMaterial, Color inTarget, TweenSettings inSettings, ColorUpdate inUpdate = ColorUpdate.PreserveAlpha) { return(Tween.Create(new TweenData_Material_Color(inMaterial, inTarget, inUpdate), inSettings)); }