Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to use in Unscaled Time / use WaitForSecondsRealtime instead #32

Closed
nguyentrong101094 opened this issue Jun 10, 2020 · 5 comments

Comments

@nguyentrong101094
Copy link

I'm using this component for tutorial dialogue. There is a case where I use it in a pause screen where Time.timeScale = 0. This component doesn't work there.
I tried changing this line:
yield return new WaitForSeconds(this.characterPrintDelays[currPrintedChars - 1]);
to
yield return new WaitForSecondsRealtime(this.characterPrintDelays[currPrintedChars - 1]);
but it leads to an exception related to the array characterPrintDelays.
Can you please add the option? Like a bool field to toggle using scaled time or not

@edwardrowe
Copy link

Thanks for creating this issue. The plugin should absolutely support unscaled time. We ran into this on our own project, as well.

edwardrowe added a commit that referenced this issue Jun 13, 2020
@edwardrowe
Copy link

I've made a release with the suggested fix, but I didn't encounter the exception you saw in the test scene. If you get a chance, try it out and see if you get an error.

Release is here: https://github.com/redbluegames/unity-text-typer/releases/tag/v2.2

If you do, can you try to get me a bit more details about what you're trying to print and when?

@edwardrowe
Copy link

Again, thanks for reporting the issue and detailed request!

@nguyentrong101094
Copy link
Author

It's working. Thank you very much!

@edwardrowe
Copy link

edwardrowe commented Jun 17, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants