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
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








 or [Construct](https://www.construct.net/en/make-games/games-editor) as two examples.
My twitch streams are at https://www.twitch.tv/worldofzerodev
Join the World of Zero Discord Server: https://discord.gg/hU5Kq2u Building OBS Overlays in Unity 3D](https://i.ytimg.com/vi/940uUL0Nvwc/mqdefault.jpg)
.
{{% youtube id=Oq2ytDvHTYM %}}
***
The Unity Animator Controller is documented here: https://docs.unity3d.com/Manual/class-AnimatorController.html
Unity has published a tutorial series on learn.unity.com about using the animator controller: https://learn.unity.com/tutorial/animator-controllers-2019-3
Join the World of Zero Discord Server: https://discord.gg/hU5Kq2u Animating the Elevator - An Elevator Between Scenes - Part 1](https://i.ytimg.com/vi/96iaO7kl2Xg/mqdefault.jpg)
