Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity wait for seconds

void start() => StartCoroutine(MyIEnumerator());

IEnumerator MyIEnumerator()
{
	Debug.Log("Hello world!");
    yield return new WaitForSeconds(3);
    Debug.Log("Goodbye world!");
}
 
PREVIOUS NEXT
Tagged: #unity #wait #seconds
ADD COMMENT
Topic
Name
3+6 =