Load same scene twice
Hi,
I'm using LoadLevelAdditiveAsync to load a scene and add it to my main one, and with the purpose of making an "infinite" world I want to load the same scene more than once to then change via scripting the parameters of the objects. The scene seems to load twice without any problems, but I don't know how to get a reference to the objects it contains since they are called the same...
Is this possible in Unity?
To expand on the reasons why I'm doing this: - First, I'm a newbie in Unity. - I'm using 2DToolkit's tilemap and for what I've been reading, instantiating a prefab of the tilemap is heavily discouraged (plus it seems to be somewhat broken). On the forums it's been suggested to build the tilemap in a new scene and load the scene additively. - I want to have a large tilemap that I can modify in runtime and not via the editor nor editor scripts.
Thanks in advance for any help!
maybe this discussion on the matter helps. see the second last post.
http://forum.unity3d.com/threads/gathering-gameobjects-loaded-during-loadleveladditiveasync.233477/
Hmm, that requires using an editor script. I want to do everything in runtime. Or did you refer to the "manager object"? I'm taking an approach like that currently, having an object I can reference from script with a variable that holds an ID which I assign on creating them.
Answer by hexagonius · Sep 12, 2015 at 02:35 PM
Yes i was :). i just thought the handy part was the autocollector during edit mode.