Ejemplo n.º 1
0
        /// <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));
        }
Ejemplo n.º 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));
 }
Ejemplo n.º 5
0
 /// <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));
 }
Ejemplo n.º 6
0
 /// <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));
 }
Ejemplo n.º 7
0
 /// <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));
 }
Ejemplo n.º 8
0
 /// <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));
 }
Ejemplo n.º 9
0
 /// <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));
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 16
0
 /// <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));
 }
Ejemplo n.º 17
0
 /// <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));
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 19
0
 /// <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));
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 21
0
 /// <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));
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 23
0
 /// <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));
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 25
0
 /// <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));
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 27
0
 /// <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));
 }
Ejemplo n.º 28
0
 /// <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));
 }
Ejemplo n.º 29
0
 /// <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));
 }
Ejemplo n.º 30
0
 /// <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));
 }