Is it possible to load a Scene with Application.LoadLevel
and get all newly added GameObjects that have been loaded?
var allObjects : GameObject ;
function Awake(){
DontDestroyOnLoad(gameObject) ;
}
function OnLevelWasLoaded(){
allObjects = GameObject.FindObjectsOfType(GameObject) ;
//debugger->
for(var i : int = 0 ; i < allObjects.length ; i++){
Debug.Log(allObjects*.name) ;*
}
//could also just watch the inspector panel populate instead of looking at debug
}
Throw that on some object in your scene, do what you do to go to the next level, and that should do the trick.