Dynamic Game Speed - Unity Quick Tip @WorldOfZeroDevelopment
Dynamic Game Speed - Unity Quick Tip  @WorldOfZeroDevelopment
Uploaded January 2020 | Updated November 2026, 3 hours ago
You are able to modify the speed of most objects, animations and physics using a single value: `Time.timeScale`. Modifying this value from it's default (`1`) causes the game to run slower (values less than 1) or faster (values greater than 1).

An important note of using this: adjusting the Time Scale does not effect the framerate of your game (at least not directly). It will scale the results of `Time.deltaTime` and `Time.fixedDeltaTime` and reduce the speed of animations and physics in your scene.

## Some Examples

### Stop Time

```csharp
Time.timeScale = 0;
```

### Half Speed

```csharp
Time.timeScale = 0.5f;
```

### Normal (Default) Speed

```csharp
Time.timeScale = 1;
```

### Double Speed

```csharp
Time.timeScale = 2
```

## References

The original Dice Roller video is here: youtube.com/watch?v=hmDF9PvMDVw

You can read more about using `Time.timeScale` on Unity's documentation site: docs.unity3d.com/ScriptReference/Time-timeScale.html

I use the Warrior Pack Bundle 1 to demo this. It's available as a paid and free asset.
- Paid: assetstore.unity.com/packages/3d/animations/warrior-pack-bundle-1-35924
- Free: assetstore.unity.com/packages/3d/animations/warrior-pack-bundle-1-free-36405

Join the World of Zero Discord Server: discord.gg/hU5Kq2u
Dynamic Game Speed - Unity Quick TipFiring Projectiles - Lets Make a Side Scrolling Shooter - Part 5I Learn How To Build Flowcharts and Signal Diagrams in Mermaid.JSCollaborative Coding with Visual Studio Live ShareRigidbody Top-Down Spaceship ControllerBuilding Coyote Time in a 2D PlatformerExploring Dot Products in UnityAutomatically Processing Assets with Custom Unity Asset PipelinesTaking a Look at Groovy @Memoized FunctionsBuilding OBS Overlays in Unity 3DAnimating the Elevator - An Elevator Between Scenes - Part 1Improving the Voxel Cube with Lighting and Optimized Updates
World of Zero |

Dynamic Game Speed - Unity Quick Tip

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER