what happens if I call the same coroutine multiple times

for example

StartCoroutine(“test”);
StartCoroutine(“test”);

IEnummerator test(){
yield return new WaitForSeconds(2);
Debug.Log(“calling”);
}

will it double the calls or just overwrite the first coroutine that was called

it should actually double it. if you want to “overwrite” the first, you have to put a StopCoroutine(“test”) in prior calling the second one

1 Like

ah, ok thanks