Skip to content

format

typescript
Time.timeScale

class: Time

description

The scaling factor of the current game time.

This method allows you to achieve fast-forward or slow-motion effects in the game. For example, setting timeScale to 2.0 will make the game time go twice as fast, while setting it to 0.5 will make the game time go half as slow.

parameter

param_nametypedescription

return

typedescription
numberThe scaling factor of the game time.

code example