v21’s avatarv21’s Twitter Archive—№ 40,016

    1. DID YOU KNOW: you can't capture the loop variable of a foreach (even breaking it out as a within-scope variable) within a Unity coroutine?
  1. …in reply to @v21
    (you can get round it by calling out to a method within the coroutine that then contains the foreach or for loop)
    1. …in reply to @v21
      Bet you're glad you learnt that, huh?