K
K
KeysCG2021-10-19 00:37:03
Unity
KeysCG, 2021-10-19 00:37:03

How to hide text after some time?

Please help to make sure that the activation of the text was on time!
I have a menu in the game pause (Time.timeScale = 0;), where you need to make the text appear on the button press through "enabled = true", for some time, for example 3 seconds.
I tried to do it through "Invoke", but it doesn't work because of the pause (Time.timeScale = 0;) :(
I can't figure out how to make this timer for the appearance of text for 3 seconds.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
KraGen.Developer, 2021-10-19
@KraGenDeveloper

try through coroutine, or through Animation. in the Animator, you can disable the binding of animation playback to timeScale

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question