Copying assets between projects

Is it possible to copy an asset from one project into another project?

For instance, I have a sky dome in one project that I want to copy to replace my skybox in another project. I can’t simply drag and drop the asset among projects because only one can be open at the time… What’s the solution? Is there a way to bundle that asset and export it and then import it in the other project?

Thanks.

For things like skybox textures, materials and scripts, I generally just open up the assets folder of the source package and drag them right into the my new project’s hierarchy.

You can export a package and import it, but that’s a lot of work. I save that for more complicated things like pre-setup scenes with lots of nested objects and connections I need to keep intact.

umm forgetting something, just dragging over doesn’t necessarily grab all the things you need because it doesn’t include the dependencies.

If he drags a folder containing his Skybox textures, cubemap and material into his new project, the only thing he’ll have to do is drag the cubemap into the slot in the material.

I didn’t mean it wouldn’t work but for most things it won’t if there not in the standard asset folder, so he should get used to having to export as a package.

Actually I was a bit inaccurate, I’m trying to copy an object NOT an asset, and in case of a “skyDOME” it contains a lot of dependencies, mesh, particles, and other custom attributes that would be too painstaking to recreate in a new project.

in that case, if the particles etc aren’t part of your skyDOME object make it all a prefab. select the prefab and export a package. include dependencies in the dialog that comes up. import into the other project and hook up as needed. alternately you can just select the scene and export the same way. everything in that scene will be included though. you can also command click on just the items you want to export.

Ok I think that’s going to work then. Sounds right.

Yep, exporting as Packages is the way to go as it will lump in all assets and dependencies nicely.

  1. Open Project A, select objects of interest, export package.

  2. Open Project B, find package from step 1 and double-click it, watch assets import.

  3. Get back to work.

I agree it is a good way to do that, but I ever exported assets from project A into a package, but when I import this package to project B, Unity told me the package was not a valid Unity package, is there something I missed? HiggyB may have his thoughts.

None jump out to me. Same machine and install of Unity? Did you attempt to zip compress the package file? Do anything else to it?

Hmm. It’s not working. Creating a prefab works better, I can get the clouds to show up in “scene” view however as soon as I go into “game” view I can not see the clouds.

The method of exporting a package along with dependencies does not work. I successfully export, however upon importing I am allowed to select the package I exported. However the window titled “importing package” with “import” button has no items listed in it for some reason.

it works just go to where you saved the .unitypackage file and select that.

:slight_smile: HiggyB

No, I just exported this package out freshly and did nothing to it, then I opened another project to import it, no success. I mean sometime. That puzzled me. So I have to copy the related assets to the new project, but still frustrated for the invalid package.

edit: yes, same machine and the install of Unity

All very odd. If you have a project that reproduces these issues and you don’t mind, please log a bug (Help > Report an Issue…) and include your project. In general this should be an easy painless process.

I will when I catch that again, thanks!

I’m having an issue with this in Unity 4.5 - which you would think would work by now.

Basically if you output an asset package with materials in it with all shader and image dependencies you can bring it into an empty new project fine. But if the assets already exist in a project and you just want to update them then they come in an error “No shader selected” message on the material.
Deleting the existing material and importing again makes no difference either.
Very frustrating.
What’s the trick to updating materials across projects?

…5 years…time to make a new thread about your specific problem.