Six Different Unity files

These are of Six different rooms in six different files.
All the files need to be interconnected through doors. In the sense - If I am in room1, and I click on a door to room2, I want the Unity 3D file of room2 to open in the same html window. And so on … for the remaining files.

How ??? :roll:

You would want to store your separate rooms as Scenes in the same Unity project. Then use this code when you want to change between scenes:

Application.LoadLevel ("Room3");[code]

You'll have to include any scenes you want to be able to switch to in the File->Build Settings Level List.

Good luck!

trouble is …
these rooms are baked seperately into different folders alongwith their fbx, maps and scripts.
I cannot collapse all of it into one folder ! :frowning:

So they aren’t separate Unity scenes, they are separate Unity projects? If that is the case, you could package them with dependencies and then import them into one new project as unique scenes.

yes … they are different projects
and umm … how does one do that ??? dependencies ???

Sorry but I’m lost as to what you have in hand, but can’t you move the models from each project into one project and assemble them as needed there?

Anyway, if you’re in a project and want to export objects (prefabs, scripts, whatever) altogether with dependencies left in place then select the objects of interest in your Project view (including scenes), then ctl- or right-click and select Export Package. Export that package, then reopen some other project, with that project open go double-click the package file you created and all the assets and dependencies get imported.

the project that I am working on … is a building with six rooms.
These are modelled in seperate 3dsmax files and exported as seperate fbx files alongwith their corresponding maps.
I have six different unity projects for the respective rooms.
I could’ve had all the rooms in one project/ file, but that shoots up the file size and the project needs to go online.
So the thing is … while moving around in the first room, if I click on a door that leads to another room, it should load the unity 3d file of the other room in the same html browser (preferably with a loader).
I hope I am clear now.

@there4: Thats messy and really not the right way to be working with Unity or your project.

If your final project is going to Web, then just set the project up with all rooms in the one project as seperate levels and as a streaming web player, and load in the room room 1 scene first, and the other rooms will stream in while the visitor is in room 1.

This was the load time is minimal to get them into room 1.

You then check to make sure room2 is loaded (streamed) before you let them click on the door to it.

shivers

nah it’s easy. export a package from scene 2 and make sure the dependencies check box is checked. import that into your project with scene 1. you’ll have everything from scene 2 including the scene file. rinse and repeat. course you’ll need to adjust your scripts to load the next scene not launch a new unity app. you’ll probably also want to eliminate duplicate files.