Search Unity

Application.LoadLevel implementation details

Discussion in 'Editor & General Support' started by allenwp, Dec 22, 2014.

  1. allenwp

    allenwp

    Joined:
    Sep 4, 2013
    Posts:
    46
    Hey there,

    Currently, my team's game will reload the same scene after every round of the game using Application.LoadLevel. We're about to change this so that the scene is not reloaded.

    What kind of things are happening under the hood with Application.LoadLevel? Is there any cleanup that we might be loosing by making this change? Our game is a VR game, so all possible cleanup like GC.Collect (and other things?) would be ideal to run at this point in the game, and I want to make sure we're not going to be missing out on this automatic cleanup by not calling Application.LoadLevel after each round.

    Thanks,
    Allen