Question by
DrLlamastein · Apr 22, 2017 at 09:07 PM ·
imagewaitforsecondsstartcoroutine
Show image then wait for x seconds and hide it again.
I need to get an image in my game to quickly flash on the screen. I've done this so far:
IEnumerator BlinkNukeIcon(float delayInSecs) {
nukeIcon.color = Color.white;
yield return new WaitForSeconds(delayInSecs);
nukeIcon.color = Color.clear;
}
but when I StartCorountine
it then the image just appears and never disappears again.
Comment
Your answer
Follow this Question
Related Questions
how to change a value over time 1 Answer
nothing called after WaitForSeconds 1 Answer
Flash Image once 1 Answer
Performance Issue with Coroutines 2 Answers
IENumerator does not work 0 Answers