Application.loadedLevel and Application.laodedLevelName

Hi,

It seems that these 2 properties are not update when you use Application.LoadLevelAdditive().
Moreover, these two properties seems to be update only next frame, even using Application.LoadLevel() function.

Does anyone have any similar issue? Is a known issue, bug, or something?

Cheers,
Fabio

Thats no issue, thats on purpose.

LoadLevelAdditive does not change the core scene, its still the original one loaded.

What you want to do is implement a set that stores all currently loaded scenes when you request an additional one to be loaded cause after a loadadditive you have 2 scenes loaded (ok 1.9, cause occlusion culling will not load additive)

Does it mean that if a load a new scene additively, it is going to be considered part of the current one?
Does it also mean that if I’m going to load a new level all previous added scene will be unloaded automatically?

I guess the documentation is a bit misaligned.
“The level index that was last loaded”
Should be:
“The current level index”

Anyway, thank you for your clarifications.