x


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.

more ▼

asked Nov 20 '11 at 11:36 PM

NRS1993 gravatar image

NRS1993
1 1 1 1

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

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.

more ▼

answered Nov 21 '11 at 09:53 PM

thorbrian gravatar image

thorbrian
325 7 8 13

AHA, that's how it works. I thought one needed to drag and drop into the prefab name marker itself. Thankyou.

Nov 22 '11 at 12:38 AM NRS1993
(comments are locked)
10|3000 characters needed characters left

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.

more ▼

answered Nov 20 '11 at 11:52 PM

Bunny83 gravatar image

Bunny83
45.2k 11 49 207

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.

Nov 21 '11 at 09:38 PM NRS1993

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.

Nov 21 '11 at 09:56 PM thorbrian

Thanks, actually, I am now unable to package an image file with it, that is what I'm having a hard time with.

Nov 21 '11 at 10:00 PM NRS1993

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?

Nov 21 '11 at 10:05 PM thorbrian
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1253
x349
x97

asked: Nov 20 '11 at 11:36 PM

Seen: 955 times

Last Updated: Nov 22 '11 at 12:38 AM