Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

How does InvokeRepeating and StartCoroutine work?

Discussion in 'Documentation' started by Deleted User, Feb 16, 2015.

  1. Deleted User

    Deleted User


    What's the code behind those 2 functions?
  2. Graham-Dunnett



    Jun 2, 2009
    Well, Mono manages a list of co-routines, and records when they are meant to be executed, and when they were last executed. This list is sorted, to make sure that the correct calls are made each frame.
    honprovet and Deleted User like this.