/// <summary>
        /// Shifts the RawImage's uvRect over time.
        /// </summary>
        static public Tween UVRectShift(this RawImage inRenderer, Vector2 inShift, TweenSettings inSettings, Axis inAxis = Axis.XY)
        {
            Rect shiftedRect = inRenderer.uvRect;

            shiftedRect.x += inShift.x;
            shiftedRect.y += inShift.y;
            return(Tween.Create(new TweenData_RawImage_UVRect(inRenderer, shiftedRect, inAxis), inSettings));
        }
Exemple #2
0
 /// <summary>
 /// Applies a gradient of colors to the TextMesh over time.
 /// </summary>
 static public Tween Gradient(this TextMesh inRenderer, Gradient inGradient, TweenSettings inSettings, ColorUpdate inUpdate = ColorUpdate.PreserveAlpha)
 {
     return(Tween.Create(new TweenData_TextMesh_Gradient(inRenderer, inGradient, inUpdate), inSettings));
 }
 /// <summary>
 /// Tweens the spacing on a GridLayoutGroup to another value over time.
 /// </summary>
 static public Tween SpacingTo(this GridLayoutGroup inRenderer, float inSpacing, TweenSettings inSettings)
 {
     return(Tween.Create(new TweenData_GridLayoutGroup_Spacing(inRenderer, new Vector2(inSpacing, inSpacing)), inSettings));
 }
 /// <summary>
 /// Tweens the padding on a LayoutGroup to another value over time.
 /// </summary>
 static public Tween PaddingTo(this LayoutGroup inLayout, int inValue, TweenSettings inSettings)
 {
     return(Tween.Create(new TweenData_LayoutGroup_Padding(inLayout, new RectOffset(inValue, inValue, inValue, inValue)), inSettings));
 }
 /// <summary>
 /// Scales the Transform to another scale over time while maintaining volume.
 /// </summary>
 static public Tween SquashStretchTo(this Transform inTransform, Vector3 inTarget, TweenSettings inSettings, Axis inPrimaryAxis, Axis inDependentAxis = Axis.XYZ)
 {
     return(Tween.Create(new TweenData_Transform_SquashStretch(inTransform, inTarget, inPrimaryAxis, inDependentAxis), inSettings));
 }
 /// <summary>
 /// Rotates the Transform to look at another Transform over time.
 /// </summary>
 static public Tween RotateLookAt(this Transform inTransform, Transform inTarget, TweenSettings inSettings, Axis inAxis, Vector3 inUp)
 {
     return(Tween.Create(new TweenData_Transform_LookAtDynamic(inTransform, inTarget, inAxis, inUp), inSettings));
 }
 /// <summary>
 /// Rotates the Transform to another euler orientation over time.
 /// </summary>
 static public Tween RotateTo(this Transform inTransform, float inTarget, TweenSettings inSettings, Axis inAxis, Space inSpace = Space.World, AngleMode inMode = AngleMode.Shortest)
 {
     return(Tween.Create(new TweenData_Transform_EulerRotationFixed(inTransform, new Vector3(inTarget, inTarget, inTarget), inSpace, inAxis, inMode), inSettings));
 }
 /// <summary>
 /// Rotates the Transform to another orientation over time.
 /// </summary>
 static public Tween RotateQuaternionTo(this Transform inTransform, Quaternion inTarget, TweenSettings inSettings, Space inSpace = Space.World)
 {
     return(Tween.Create(new TweenData_Transform_RotationFixed(inTransform, inTarget, inSpace), inSettings));
 }
 /// <summary>
 /// Tweens from one int to another over time.
 /// </summary>
 static public Tween Int(int inStart, int inEnd, Action <int> inSetter, TweenSettings inSettings)
 {
     return(Tween.Create(new TweenData_Value_Int(inStart, inEnd, inSetter), inSettings));
 }
Exemple #10
0
 /// <summary>
 /// Tweens from one to zero over time.
 /// </summary>
 static public Tween OneToZero(Action <float> inSetter, TweenSettings inSettings)
 {
     return(Tween.Create(new TweenData_Value_Float(1, 0, inSetter), inSettings));
 }
Exemple #11
0
 /// <summary>
 /// Tweens from zero to one over time.
 /// </summary>
 static public Tween ZeroToOne(Action <float> inSetter, TweenSettings inSettings)
 {
     return(Tween.Create(new TweenData_Value_Float(0, 1, inSetter), inSettings));
 }
Exemple #12
0
 /// <summary>
 /// Tweens over the given curve over time.
 /// </summary>
 static public Tween FloatCurve(AnimationCurve inCurve, Action <float> inSetter, TweenSettings inSettings)
 {
     return(Tween.Create(new TweenData_Value_FloatCurve(inCurve, inSetter), inSettings));
 }
Exemple #13
0
 /// <summary>
 /// Tweens from one float to another over time.
 /// </summary>
 static public Tween Float(float inStart, float inEnd, Action <float> inSetter, TweenSettings inSettings)
 {
     return(Tween.Create(new TweenData_Value_Float(inStart, inEnd, inSetter), inSettings));
 }
Exemple #14
0
 /// <summary>
 /// Tweens from one value to another over time.
 /// </summary>
 static public Tween Value <T>(T inStart, T inEnd, Action <T> inSetter, Interpolator <T> inLerp, TweenSettings inSettings)
 {
     return(Tween.Create(new TweenData_Value_Generic <T>(inStart, inEnd, inSetter, inLerp), inSettings));
 }
Exemple #15
0
 /// <summary>
 /// Tweens the weight for a blend shape on a SkinnedMeshRenderer to another value over time.
 /// </summary>
 static public Tween BlendShapeTo(this SkinnedMeshRenderer inRenderer, int inIndex, float inTarget, TweenSettings inSettings)
 {
     return(Tween.Create(new TweenData_SkinnedMeshRenderer_BlendWeight(inRenderer, inIndex, inTarget), inSettings));
 }
 /// <summary>
 /// Scales the Transform to another scale over time.
 /// </summary>
 static public Tween ScaleTo(this Transform inTransform, float inTarget, TweenSettings inSettings, Axis inAxis = Axis.XYZ)
 {
     return(Tween.Create(new TweenData_Transform_ScaleFixed(inTransform, new Vector3(inTarget, inTarget, inTarget), inAxis), inSettings));
 }
 /// <summary>
 /// Scales the Transform to the scale of another Transform over time.
 /// </summary>
 static public Tween ScaleTo(this Transform inTransform, Transform inTarget, TweenSettings inSettings, Axis inAxis = Axis.XYZ)
 {
     return(Tween.Create(new TweenData_Transform_ScaleDynamic(inTransform, inTarget, inAxis), inSettings));
 }
Exemple #18
0
 /// <summary>
 /// Tweens from one Vector4 to another over time.
 /// </summary>
 static public Tween Vector(Vector4 inStart, Vector4 inEnd, Action <Vector4> inSetter, TweenSettings inSettings)
 {
     return(Tween.Create(new TweenData_Value_Vector4(inStart, inEnd, inSetter), inSettings));
 }
 /// <summary>
 /// Rotates the Transform to the orientation of another Transform over time.
 /// </summary>
 static public Tween RotateTo(this Transform inTransform, Transform inTarget, TweenSettings inSettings, Space inSpace = Space.World)
 {
     return(Tween.Create(new TweenData_Transform_RotationDynamic(inTransform, inTarget, inSpace), inSettings));
 }
Exemple #20
0
 /// <summary>
 /// Tweens from one RectOffset to another over time.
 /// </summary>
 static public Tween RectOffset(RectOffset inStart, RectOffset inEnd, Action <RectOffset> inSetter, TweenSettings inSettings)
 {
     return(Tween.Create(new TweenData_Value_RectOffset(inStart, inEnd, inSetter), inSettings));
 }
 /// <summary>
 /// Rotates the Transform to look at the given point over time.
 /// </summary>
 static public Tween RotateLookAt(this Transform inTransform, Vector3 inTarget, TweenSettings inSettings, Axis inAxis = Axis.XYZ)
 {
     return(Tween.Create(new TweenData_Transform_LookAtFixed(inTransform, inTarget, inAxis, Vector3.up), inSettings));
 }
Exemple #22
0
 /// <summary>
 /// Tweens from one Quaternion to another over time.
 /// </summary>
 static public Tween Quaternion(Quaternion inStart, Quaternion inEnd, Action <Quaternion> inSetter, TweenSettings inSettings)
 {
     return(Tween.Create(new TweenData_Value_Quaternion(inStart, inEnd, inSetter), inSettings));
 }
 /// <summary>
 /// Transforms the Transform to another Transform over time.
 /// </summary>
 static public Tween TransformTo(this Transform inTransform, Transform inTarget, TweenSettings inSettings, TransformProperties inProperties = TransformProperties.All, Space inSpace = Space.World)
 {
     return(Tween.Create(new TweenData_Transform_Transform(inTransform, inTarget, inSpace, inProperties), inSettings));
 }
Exemple #24
0
 /// <summary>
 /// Tweens from one Color to another over time.
 /// </summary>
 static public Tween Color(Color inStart, Color inEnd, Action <Color> inSetter, TweenSettings inSettings, ColorUpdate inUpdateMode = ColorUpdate.FullColor)
 {
     return(Tween.Create(new TweenData_Value_Color(inStart, inEnd, inSetter, inUpdateMode), inSettings));
 }
 /// <summary>
 /// Tweens the flexible size on a LayoutElement over time.
 /// </summary>
 static public Tween FlexibleSizeTo(this LayoutElement inLayout, Vector2 inValue, TweenSettings inSettings, Axis inAxis = Axis.XY)
 {
     return(Tween.Create(new TweenData_LayoutElement_FlexibleSize(inLayout, inValue, inAxis), inSettings));
 }
Exemple #26
0
 /// <summary>
 /// Tweens over the given Gradient over time.
 /// </summary>
 static public Tween Gradient(Gradient inGradient, Action <Color> inSetter, TweenSettings inSettings)
 {
     return(Tween.Create(new TweenData_Value_Gradient(inGradient, inSetter), inSettings));
 }
 /// <summary>
 /// Tweens the spacing on a HorizontalOrVerticalLayoutGroup to another value over time.
 /// </summary>
 static public Tween SpacingTo(this HorizontalOrVerticalLayoutGroup inRenderer, float inSpacing, TweenSettings inSettings)
 {
     return(Tween.Create(new TweenData_DirectionLayoutGroup_Spacing(inRenderer, inSpacing), inSettings));
 }
 /// <summary>
 /// Moves the Transform to another position over time.
 /// </summary>
 static public Tween MoveTo(this Transform inTransform, float inPosition, TweenSettings inSettings, Axis inAxis, Space inSpace = Space.World)
 {
     return(Tween.Create(new TweenData_Transform_PositionFixed(inTransform, new Vector3(inPosition, inPosition, inPosition), inSpace, inAxis), inSettings));
 }
 /// <summary>
 /// Tweens the cell size on a GridLayoutGroup to another value over time.
 /// </summary>
 static public Tween CellSizeTo(this GridLayoutGroup inRenderer, float inSize, TweenSettings inSettings)
 {
     return(Tween.Create(new TweenData_GridLayoutGroup_CellSize(inRenderer, new Vector2(inSize, inSize)), inSettings));
 }
 /// <summary>
 /// Moves the Transform to the position of another Transform over time.
 /// </summary>
 static public Tween MoveTo(this Transform inTransform, Transform inTarget, TweenSettings inSettings, Axis inAxis = Axis.XYZ, Space inSpace = Space.World)
 {
     return(Tween.Create(new TweenData_Transform_PositionDynamic(inTransform, inTarget, inSpace, inAxis), inSettings));
 }