Time
Complete API reference for Time, including constructors, attributes, virtual attributes, and methods.
Package: JAVARuntime
Category: Time
Component: no
public class Time
Virtual Attributes
| Name | Type | Access | Description |
|---|---|---|---|
deltaTime | float | get | Returns the time (in seconds) between the last frame and the current one. |
frameTime | float | get | Returns the time (in seconds) between the last frame and the current one. |
timeScale | float | get/set | Returns the current time scale. |
timeSpeed | float | get/set | Returns the current time speed. |
unscaledDeltaTime | float | get | Returns the time (in seconds) between the last frame and the current one without time scale (real time). |
unscaledFrameTime | float | get | Returns the time (in seconds) between the last frame and the current one without time scale (real time). |
Static Methods
| Signature | Returns | Description |
|---|---|---|
deltaTime() | float | Returns the time (in seconds) between the last frame and the current one. |
getDeltaTime() | Object | Returns the current deltaTime value. |
frameTime() | float | Returns the time (in seconds) between the last frame and the current one. |
getFrameTime() | Object | Returns the current frameTime value. |
unscaledDeltaTime() | float | Returns the time (in seconds) between the last frame and the current one without time scale (real time). |
getUnscaledDeltaTime() | Object | Returns the current unscaledDeltaTime value. |
getUnscaledFrameTime() | Object | Returns the current unscaledFrameTime value. |
getTimeSpeed() | Object | Returns the current timeSpeed value. |
setTimeSpeed(float) | Object | Sets timeSpeed. |
getTimeScale() | Object | Returns the current timeScale value. |
setTimeScale(float) | Object | Sets timeScale. |