# 1. Juice, TimeScale and When to Tween Part of [[Tweening and UI Juice]]. Next: [[2. A Hand-Rolled Tween Runner]]. > [!warning] Code not compiled in Unity > Time APIs below are from the official 6000.5 CoreModule XML. Not play-tested with a paused menu. ## 1.1 Juice is a sentence [[Level Up! (Review)]] wants every action to be readable. A health bar that eases down, a button that enlarges on hover, a pickup that squash-and-stretches — those are **sentences**. A ten-second bounce on every label is noise. Use a tween when the *change itself* is the message (I took damage, the menu opened, the coin landed). Use [[Animation]] / [[Animation Advanced]] when the change is a character performance (a walk, an attack). Use [[Cinemachine 3]] when the camera should do the work. Do not tween a gameplay rule (invulnerability, cooldown) — those belong in a system, with juice as a side effect. ## 1.2 Scaled vs unscaled time Official 6000.5: | Property | Official meaning | |---|---| | `Time.deltaTime` | Interval since the last frame. | | `Time.timeScale` | "The rate at which in-game time passes relative to real time." | | `Time.unscaledDeltaTime` | "The timeScale-independent interval in seconds from the last frame to the current one." | | `Time.unscaledTime` | TimeScale-independent time since start, this frame. | [[4. Pause Menu Time Scale and Audio]] already sets `Time.timeScale` to 0 while paused. Any juice that uses `deltaTime` **freezes** with the game. That is what you want for a hit-punch on an enemy. That is what you do **not** want for the pause panel sliding in. Rule of thumb: - Gameplay juice (world punches, damage flashes on characters): **scaled** `deltaTime`. - Menu and pause-HUD juice: **unscaled**. - UI Toolkit USS transitions: official docs do not state that they follow `Time.timeScale`. Treat that as **unverified**. If a paused menu must animate, confirm in Play Mode, or drive the panel with the hand-rolled runner and `unscaled: true` (part 2). `AnimationCurve.Evaluate(time)` is official and has no clock of its own. You feed it a 0..1 (or 0..duration) value that *you* advance with one of the Time properties. Next: [[2. A Hand-Rolled Tween Runner]]. See also (added 2026-11-30): [[Replays and Ghost Recording]] - pose record and ghost playback use Time.unscaledTime so a kill-cam can run while timeScale is 0.