-
Notifications
You must be signed in to change notification settings - Fork 12
TweenData Documentation
Lucas Sampaio Dias edited this page Jun 21, 2018
·
23 revisions
There are many things you can do with UniTween. In fact, there are dozens of different TweenDatas and hundreds of possible commands! Below you will find what every command does for the following components:
- AudioMixer
- AudioSource
- Camera
- CanvasGroup
- Graphic
- Image
- LayoutElement
- Light
- LineRenderer
- MeshRenderer
- Outline
- RectTransform
- Rigidbody
- Rigidbody2D
- ScrollRect
- Slider
- SpriteRenderer
- Text
- TrailRenderer
- Transform
- PostProcessVolume (Extension)
- TextMeshPro (Extension)
- TextMeshProUGUI (Extension)
NOTE: The information about the commands below (except from TextMeshPro, TextMeshProUGUI and PostProcessVolume) is from DOTween's official documentation, as UniTween is based upon it to run. Check it out for more information on their parameters and other technical stuff.
- SetFloat: Tweens an AudioMixer's exposed float to the given value. Note that you need to manually expose a float in an AudioMixerGroup in order to be able to tween it from an AudioMixer.
- Fade: Tweens an AudioSource's volume to the given value.
- Pitch: Tweens an AudioSource's pitch to the given value.
- Aspect: Tweens a Camera's aspect.
- Color: Tweens a Camera's backgroundColor.
- FarClipPlane: Tweens a Camera's farClipPlane.
- FieldOfView: Tweens a Camera's fieldOfView.
- NearClipPlane: Tweens a Camera's nearClipPlane.
- OrthoSize: Tweens a Camera's orthographicSize.
- PixelRect: Tweens a Camera's pixelRect.
- Rect: Tweens a Camera's rect.
- ShakePosition: Shakes a Camera's localPosition along its relative X Y axes with the given values.
- ShakeRotation: Shakes a Camera's localRotation.
- Fade: Fades the target's alpha to the given value.
- Color: Changes the target's color to the given one.
- Fade: Fades the target's alpha to the given value.
- BlendableColor: Tweens the target's color to the given value, in a way that allows other BlendableColor tweens to work together on the same target, instead than fight each other as multiple Color would do.
- Color: Changes the target's color to the given one.
- Fade: Fades the target's alpha to the given value.
- FillAmount: Changes target's fillAmount to the given value (0 to 1).
- GradientColor: Changes the target's color via the given gradient (only uses the colors, not the alphas)
- BlendableColor: Tweens the target's color to the given value, in a way that allows other BlendableColor tweens to work together on the same target, instead than fight each other as multiple Color would do.
- FlexibleSize: Changes the layoutElement's flexibleWidth/Height to the given one
- MinSize: Changes the layoutElement's minWidth/Height to the given one
- PreferredSize: Changes the layoutElement's preferredWidth/Height to the given one
- Color: Changes the light's color to the given one
- Intensity: Changes the light's intensity to the given one
- ShadowStrength: Changes the light's shadowStrength to the given one
- BlendableColor: Tweens the target's color to the given value, in a way that allows other BlendableColor tweens to work together on the same target, instead than fight each other as multiple Color would do.
- Color: Changes the target's color to the given one. Note that this tween requires to also insert the start colors for the tween, since LineRenderers have no way to get them.
- Color: Changes the target's color to the given one.
- ColorProperty: Changes the target's named color property (shader property) to the given one.
- Fade: Fades the target's alpha to the given value (works only with materials that support alpha).
- FadeProperty: Fades the target's named alpha property (shader property) to the given one.
- Float: Changes the target's named float property (shader property) to the given one.
- GradientColor: Changes the target's color via the given gradient (only uses the colors, not the alphas).
- GradientColorProperty: Changes the target's named color property (shader property) via the given gradient (only uses the colors, not the alphas).
- Offset: Changes the target's textureOffset to the given one.
- OffsetProperty: Changes the target's named textureOffset property (shader property) to the given one.
- Tiling: Changes the target's textureScale to the given one.
- TilingProperty: Changes the target's named textureScale property (shader property) to the given one.
- Vector: Changes the target's named Vector property (shader property) to the given one.
- BlendableColor: Tweens a Material's color to the given value, in a way that allows other BlendableColor tweens to work together on the same target, instead than fight each other as multiple Color would do.
- BlendableColorProperty: Tweens a Material's named color property (shader property) to the given value, in a way that allows other BlendableColor tweens to work together on the same target, instead than fight each other as multiple Color would do.
- Color: Changes the outline's color to the given one
- Fade: Fades the outline's alpha to the given value.
- AnchorMax: Tweens the target's anchorMax property to the given value.
- AnchorMin: Tweens the target's anchorMin property to the given value.
- AnchorPos: Tweens the target's anchoredPosition to the given value.
- AnchorPosY: Tweens the target's anchoredPosition to the given value, tweening only the chosen axis.
- AnchorPosX: Tweens the target's anchoredPosition3D to the given value.
- JumpAnchorPos: Tweens the target's anchoredPosition to the given value, while also applying a jump effect along the Y axis.
- Pivot: Tweens the target's pivot to the given value.
- PivotX: Tweens the target's pivot to the given value, tweening only the X axis.
- PivotY: Tweens the target's pivot to the given value, tweening only the Y axis.
- PunchAnchorPos: Punches the target's anchoredPosition with the given values.
- ShakeAnchorPos: Shakes the target's anchoredPosition with the given values.
- SizeDelta: Tweens the target's sizeDelta to the given value.
- Move: Moves the target's position to the given value.
- MoveX: Moves the target's position to the given value, tweening only the X axis (note that in case of rigidbodies, the other axes will still be "locked" by the tween).
- MoveY: Moves the target's position to the given value, tweening only the Y axis (note that in case of rigidbodies, the other axes will still be "locked" by the tween).
- MoveZ: Moves the target's position to the given value, tweening only the Z axis (note that in case of rigidbodies, the other axes will still be "locked" by the tween).
- Jump: Tweens the target's position to the given value, while also applying a jump effect along the Y axis.
- Rotate: Rotates the target to the given value.
- LookAt: Rotates the target so that it will look towards the given position.
- Move: Moves the target's position to the given value.
- MoveX: Moves the target's position to the given value, tweening only the X axis (note that in case of rigidbodies, the other axes will still be "locked" by the tween).
- MoveY: Moves the target's position to the given value, tweening only the Y axis (note that in case of rigidbodies, the other axes will still be "locked" by the tween).
- Jump: Tweens the target's position to the given value, while also applying a jump effect along the Y axis.
- Rotate: Rotates the target to the given value.
- NormalizedPos: Tweens the target's horizontalNormalizedPosition and verticalNormalizedPosition properties to the given value.
- HorizontalNormalizedPos: Tweens the target's horizontalNormalizedPosition property to the given value.
- VerticalPos: Tweens the target's verticalNormalizedPosition property to the given value.
- Value: Changes the target's value to the given one.
- Color: Changes the target's color to the given one.
- Fade: Fades the target's alpha to the given value.
- GradientColor: Changes the target's color via the given gradient (only uses the colors, not the alphas).
- BlendableColor: Tweens the target's color to the given value, in a way that allows other BlendableColor tweens to work together on the same target, instead than fight each other as multiple Color would do.
- Color: Changes the target's color to the given one.
- Fade: Fades the target's alpha to the given value.
- Text: Tweens the target's text to the given value.
- BlendableColor: Tweens the target's color to the given value, in a way that allows other BlendableColor tweens to work together on the same target, instead than fight each other as multiple Color would do.
- Resize: Changes the TrailRenderer's startWidth/endWidth to the given ones
- Time: Changes the target's time value to the given one
- Move: Moves the target's position to the given value.
- MoveX: Moves the target's position to the given value, tweening only the X axis.
- MoveY: Moves the target's position to the given value, tweening only the Y axis.
- MoveZ: Moves the target's position to the given value, tweening only the Z axis.
- LocalMove: Moves the target's localPosition to the given value.
- LocalMoveX: Moves the target's localPosition to the given value, tweening only the X axis.
- LocalMoveY: Moves the target's localPosition to the given value, tweening only the Y axis.
- LocalMoveZ: Moves the target's localPosition to the given value, tweening only the Z axis.
- Jump: Tweens the target's position to the given value, while also applying a jump effect along the Y axis.
- LocalJump: Tweens the target's localPosition to the given value, while also applying a jump effect along the Y axis.
- Rotate: Rotates the target to the given value.
- RotateQuaternion: Rotates the target to the given value using pure Quaternions.
- LocalRotate: Rotates the target's localRotation to the given value.
- LocalRotateQuaternion: Rotates the target's localRotation to the given value using pure Quaternions.
- LookAt: Rotates the target so that it will look towards the given position.
- Scale: Scales the target's localScale to the given value.
- ScaleX: Scales the target's localScale to the given value while tweening only the X axis.
- ScaleY: Scales the target's localScale to the given value while tweening only the Y axis.
- ScaleZ: Scales the target's localScale to the given value while tweening only the Z axis.
- PunchPosition: Punches a Transform's localPosition towards the given direction and then back to the starting one as if it was connected to the starting position via an elastic.
- PunchRotation: Punches a Transform's localRotation towards the given size and then back to the starting one as if it was connected to the starting rotation via an elastic.
- PunchScale: Punches a Transform's localScale towards the given size and then back to the starting one as if it was connected to the starting size via an elastic.
- ShakePosition: Shakes a Transform's localPosition with the given values.
- ShakeRotation: Shakes a Transform's localRotation with the given values.
- ShakeScale: Shakes a Transform's localScale with the given values.
- Path: Tweens a Transform's position through the given path waypoints, using the chosen path algorithm.
- LocalPath: Tweens a Transform's localPosition through the given path waypoints, using the chosen path algorithm.
- BlendableMoveBy: Tweens a Transform's position BY the given value (as if it was set to relative), in a way that allows other BlendableMove tweens to work together on the same target, instead than fight each other as multiple Move would do.
- BlendableLocalMoveBy: Tweens a Transform's localPosition BY the given value (as if it was set to relative), in a way that allows other BlendableMove tweens to work together on the same target, instead than fight each other as multiple Move would do.
- BlendableRotateBy: Tweens a Transform's rotation BY the given value (as if it was set to relative), in a way that allows other BlendableRotate tweens to work together on the same target, instead than fight each other as multiple Rotate would do.
- BlendableLocalRotateBy: Tweens a Transform's localRotation BY the given value (as if it was set to relative), in a way that allows other BlendableRotate tweens to work together on the same target, instead than fight each other as multiple Rotate would do.
- BlendableScaleBy: Tweens a Transform's localScale BY the given value (as if it was set to relative), in a way that allows other BlendableScale tweens to work together on the same target, instead than fight each other as multiple Scale would do.
- Weigth: ...
- Priority: ...
- BlendDistance: ...
- Intensity: ...
- Radius: ...
- Color: ...
- Filtering: ...
- MinimumEV: ...
- MaximumEV: ...
- ExposureCompensation: ...
- Intensity: ...
- Threshold: ...
- SoftKnee: ...
- Diffusion: ...
- AnamorphicRatio: ...
- Color: ...
- DirtinessIntensity: ...
- Intensity: ...
- Temperature: ...
- Tint: ...
- PostExposure: ...
- ColorFilter: ...
- Saturation: ...
- Contrast: ...
- RedMixerRed: ...
- RedMixerGreen: ...
- RedMixerBlue: ...
- GreenMixerRed: ...
- GreenMixerGreen: ...
- GreenMixerBlue: ...
- BlueMixerRed: ...
- BlueMixerGreen: ...
- BlueMixerBlue: ...
- Lift: ...
- Gamma: ...
- Gain: ...
- FocusDistance: ...
- Aperture: ...
- FocalLength: ...
- Intensity: ...
- Size: ...
- LuminanceContribution: ...
- Intensity: ...
- YMultiplier: ...
- XMultiplier: ...
- CenterX: ...
- CenterY: ...
- Scale: ...
- ShutterAngle: ...
- SampleCount: ...
- MaximumMarchDistance: ...
- DistanceFade: ...
- Vignette: ...
- Color: ...
- Intensity: ...
- Smoothness: ...
- Roundness: ...
- Opacity: ...
- Scale: Tweens the value of the font size uniformly, multiplying the given value by the font size
- Color: Changes the target's color to the given one.
- FaceColor: Changes the target's face color to the given one.
- FaceFade: Fades the target's face color to the given value.
- Fade: Fades the target's alpha to the given value.
- FontSize: Changes the target's font size to the given value.
- GlowColor: Changes the target's glow color to the given one.
- MaxVisibleCharacters: Changes the target's maximum visible characters to the given value.
- OutlineColor: Changes the target's outline color to the given one.
- Text: Tweens the target's text to the given value. You may also activate/deactive Rich Text aswell.
- ColorProperty: Changes the target's named color property (shader property) to the given one.
- FloatProperty: Changes the target's named float property (shader property) to the given one.
- TilingProperty: Changes the target's named tiling/vector2 property (shader property) to the given one.
- VectorProperty: Changes the target's named vector/vector4 property (shader property) to the given one.
- Scale: Tweens the value of the font size uniformly, multiplying the given value by the font size
- Color: Changes the target's color to the given one.
- FaceColor: Changes the target's face color to the given one.
- FaceFade: Fades the target's face color to the given value.
- Fade: Fades the target's alpha to the given value.
- FontSize: Changes the target's font size to the given value.
- GlowColor: Changes the target's glow color to the given one.
- MaxVisibleCharacters: Changes the target's maximum visible characters to the given value.
- OutlineColor: Changes the target's outline color to the given one.
- Text: Tweens the target's text to the given value. You may also activate/deactive Rich Text aswell.
- ColorProperty: Changes the target's named color property (shader property) to the given one.
- FloatProperty: Changes the target's named float property (shader property) to the given one.
- TilingProperty: Changes the target's named tiling/vector2 property (shader property) to the given one.
- VectorProperty: Changes the target's named vector/vector4 property (shader property) to the given one.