-
Notifications
You must be signed in to change notification settings - Fork 0
API.Service.Time
Namespace: Ju.Services
This service provides time related info and manages the time scale of the game.
float TimeScale;
float Time;
float FixedTime;
float DeltaTime;
float DeltaTimeSmooth;
float FixedDeltaTime;
float UnscaledTime;
float UnscaledFixedTime;
float UnscaledDeltaTime;
float UnscaledDeltaTimeSmooth;
float UnscaledFixedDeltaTime;
uint FrameCount;
void SetTimeScale(float timeScale);
The scale at which time passes (x1 being normal speed, x0.5 half, etc). Will affect to all the time variables except the unscaled ones.
Scaled time in seconds since the start of the first Update call. Returns FixedTime when in FixedUpdate.
Scaled time in seconds since the start of the first FixedUpdate call.
Scaled last frame time in seconds. Returns FixedDeltaTime when in FixedUpdate.
Smoothed out version of DeltaTime using the last 10 frames. Returns FixedDeltaTime when in FixedUpdate.
Scaled last fixed frame time in seconds.
Unscaled time in seconds since the start of the first Update call. Returns UnscaledFixedTime when in FixedUpdate.
Unscaled time in seconds since the start of the first FixedUpdate call.
Unscaled last frame time in seconds. Returns UnscaledFixedDeltaTime when in FixedUpdate.
Smoothed out version of UnscaledDeltaTime using the last 10 frames. Returns UnscaledFixedDeltaTime when in FixedUpdate.
Unscaled last fixed frame time in seconds.
Total number of frames that have been rendered (calls to Update).
Return to [Home]
- Home
- Install
- Manual
-
Core API
- Services:
- Util:
-
Unity API
- Services:
- Integrations: