Show / Hide Table of Contents

Enum TweenTiming

Tween timing defines when a tween is updated and what time it's being calculated with.

Namespace: Sttz.Tweener
Assembly: cs.temp.dll.dll
Syntax
[Flags]
public enum TweenTiming

Fields

Name Description
Default

Default preset. Update tweens during the update loop and use the default time.

DefaultTime

Use Unity's default time (i.e. Time.time). Tweens running with the default time are affected by Time.timeScale.

FixedUpdate

Update the tween during Unity's fixed update loop (best when animating properties interacting with physics).

LateUpdate

Update the tween during Unity's late update loop (best for overwriting other animations).

Menu

Menu preset. Update tweens during the update loop and use unscaled time. This allows tweening while the game is paused by setting Time.timeScale to 0.

Physics

Physics preset. Update tweens during the fixed update loop and use the default time.

RealTime

Use Unity's real time (i.e. Time.realTimeSinceStartup. Tweens running with real time are unaffected by Time.timeScale or Unity being paused in the background.

Undefined

Undefined timing. The parent scope's timing is used in this case.

UnscaledTime

Use Unity's unscaled time (i.e. Time.unscaledTime. Tweens running with unscaled time are unaffected by Time.timeScale.

Update

Update the tween during Unity's update loop (best for visuals).

Back to top © 2018 Adrian Stutz