Effects.Typewriter fails when TimeScale is 0
danielk-sn opened this issue · 1 comments
What is the current behavior?
Using the "Phone Chat" sample, no chat test displays when starting the conversation if the timescale is set to zero
Please provide the steps to reproduce, and if possible a minimal demo of the problem:
Import "Phone Chat" sample and open scene.
Add the following to the PhoneChatDialogueHelper script:
void OnEnable()
{
Time.timeScale = 0;
}
What is the expected behavior?
Chat text display even if timescale is zero
Please tell us about your environment:
- Yarn Spinner Version: 2.2.4
- Unity Version: 2021.3.21.f1
Other information
Some way to change the effects to run if timescale is zero. Since it uses Time.deltaTime, this prevents it from progressing. Either a way to flip over to unscaledDeltaTime or an easier way to extend the effect so that I can override it. Updating only the Effect doesn't seem to be enough