- Home /
Moving entire object (with it's scripts and triggers) into a different project.
Earlier today my project would not allow me to make any changes to it without it crashing. I was attempting to make the door in that project an automatic door that opens when the character enters the box collider trigger. Because I could not edit the main project without crashing, I decided to take the door out of that project and edit it in a new empty project. I did it, but the transition was weird. The door was really small, but I made it bigger and that was the end of the issue. I then proceeded to make the door function properly with the trigger and a proper script. However, is there a way to bring that door, it's trigger, and script to my initial project? I tried just importing the assets once I was in the initial project, however the script was missing, the animator was not initialized, and etc.
Do I have to just find a way to edit the door in the initial project or is there a way to import it properly?
Answer by steakpinball · May 13, 2015 at 02:00 PM
Export a package from the alternate project. Then import it into the initial project.
Steps
1. In the Project View, select all the asset files you want to export.
2. Choose Assets->Export Package… from the menubar.
3. Name and save the package anywhere you like.
4. Open the project you want to bring the assets into.
5. Choose Assets->Import Package… from the menubar.
6. Select your package file saved in step 3.
http://docs.unity3d.com/Manual/HOWTO-exportpackage.html
[meta] UA seems to have issues putting a list in a quote
Answer by petrix · May 13, 2015 at 11:48 AM
I think what you should do is an AssetBundle with that prefab and all it's dependencies (you will have to include those scripts you are talking about).
See if this link helps: