- Home /
Creating independent prefabs
I am trying to make self contained object-assets for someone. I have the textures and fbx format geometry, but really have no idea how to export the textures and models together into a unity prefab so that he is just able to import an object. Any help would be appreciated.
Answer by thorbrian · Nov 21, 2011 at 09:53 PM
Select everything you want to export with ctrl-clicking in the project tab, then right-click and choose export package - everything you selected will be included in the package.
AHA, that's how it works. I thought one needed to drag and drop into the prefab name marker itself. Thankyou.
Answer by Bunny83 · Nov 20, 2011 at 11:52 PM
Just select your prefab in your project panel, right-click and choose export package. It will automatically include all dependencies. You can select as much assets you like to pack together in a package.
If you open a .unitypackage it will show an import dialog where you can select the assets you want to import.
What I am still having a hard time with is packaging an image file, I keep dragging the image into the prefab, but it won't stick.
The dependency inclusion for the export seems broken to me - if I right click on the prefab and do "select dependencies", it selects things that will not be included with the "include dependencies" checkbox of the export. I get better results by doing "select dependencies" first, then doing export on that selection.
Thanks, actually, I am now unable to package an image file with it, that is what I'm having a hard time with.
I just tested it with 3.4.2f2 on windows - I selected a .psd file in the project view, right-clicked and did "export package", and I got a package with the .psd in it, when I imported into another project, it imported the .psd. It worked fine as part of a multi-select with a prefab using the texture as well. What exactly is it you are trying and what is the result you are getting?
Your answer
Follow this Question
Related Questions
How to export Prefab to .FBX file on iOS platform at runtime ? 0 Answers
Problems importing an asset bundle 1 Answer
Error Compressing TAR when exporting package 2 Answers
Exporting a unity asset as a Package,but have not Preview Picture?help me please 0 Answers
Exporting / Commiting a Prefab? 2 Answers