💡FAQ
v1.0
My Awake(), Update(), OnEnable() methods aren't executing
The MagicTimeUser
class uses various Unity lifecycle events, and they are virtual. Make sure that your subclasses which derive from MagicTimeUser
are properly overriding the methods, and calling "Base".
The TimeScale never changes, but I see it changing in the Inspector
When the TimeScale is set to transition over time, make sure you are not setting the value every frame. This can happen when you have a slider or other method that itself transitions from one value to another.
The SetValue()
method will start the transition, and if it is called every frame, then the transition curve will resolve to the 0
position, which often may be a value multiplier of 0
, meaning the end result will not be modified.
If you want to utilize a slider or other transition external to the Transition values in the LocalTimeScale
, set the Transition Duration to 0
. This will ensure that the value provided in SetValue()
is set immediately.
Last updated