Local Time Scale Scripting
v1.0
Getting the Time Values
LocalTimeScale localTimeScale;
float _counter = 0f;
float _fixedDeltaTime;
_counter += localTimeScale.DeltaTime;
_fixedCounter += localTimeScale.FixedDeltaTime;Getting & Setting the Value
// Get the value
LocalTimeScale localTimeScale;
var currentValue = localTimeScale.Value;
// Set the value
float newValue = 0.5f;
localTimeScale.SetValue(newValue);Pausing and Resuming
Subscribing
Information About Subscribers
Unsubscribing
Automatically Removing the LocalTimeScale
LocalTimeScaleSubscribing to Events
Last updated