-
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
- HorizontalNormalizedPos
- VerticalPos
- Value
- Color
- Fade
- GradientColor
- BlendableColor
- Color
- Fade
- Text
- BlendableColor
- Resize
- Time
- Move
- MoveX
- MoveY
- MoveZ
- LocalMove
- LocalMoveX
- LocalMoveY
- LocalMoveZ
- Jump
- LocalJump
- Rotate
- RotateQuaternion
- LocalRotate
- LocalRotateQuaternion
- LookAt
- Scale
- ScaleX
- ScaleY
- ScaleZ
- PunchPosition
- PunchRotation
- PunchScale
- ShakePosition
- ShakeRotation
- ShakeScale
- Path
- LocalPath
- BlendableMoveBy
- BlendableLocalMoveBy
- BlendableRotateBy
- BlendableLocalRotateBy
- BlendableScaleBy
- 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: ...
- Color: ...
- FaceColor: ...
- FaceFade: ...
- Fade: ...
- FontSize: ...
- GlowColor: ...
- MaxVisibleCharacters: ...
- OutlineColor: ...
- Text: ...
- ColorProperty: ...
- FloatProperty: ...
- TilingProperty: ...
- VectorProperty: ...
- Scale: ...
- Color: ...
- FaceColor: ...
- FaceFade: ...
- Fade: ...
- FontSize: ...
- GlowColor: ...
- MaxVisibleCharacters: ...
- OutlineColor: ...
- Text: ...
- ColorProperty: ...
- FloatProperty: ...
- TilingProperty: ...
- VectorProperty: ...