x


Couldn't attach any components to 3D model Prefab

Hi,

I'm trying to attach script to my imported 3d object prefab, but I couldn't.

Anything from AssetStore are disabled to be attached component. For example, I downloaded Soldier Character Pack, But I couldn't attach...

Do you know how to attach component (lke Script or Material etc...) or why I can't attach?

Thanks for any advise.

more ▼

asked Nov 23 '11 at 07:28 AM

guruguruman gravatar image

guruguruman
31 2 2 4

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

1 answer: sort oldest

What does it mean that you cannot attach components?

By the way, in your example "Soldier Character Pack" doesn't include prefabs but only two models, so you have to drag them in a scene on Hierarchy, attach the components there and finally create a new Prefab in the Project panel dragging your just customized model from the Hierarchy panel

more ▼

answered Nov 23 '11 at 09:46 AM

SkaredCreations gravatar image

SkaredCreations
136 2

Thanks for great answer, It could be straight answer to my question.

What does it mean that you cannot attach components?

I confused model asset with prefabs, in another words, I think model as a paticular type of prefab...

Thank you anyway for saving me from hell :)

Nov 23 '11 at 01:35 PM guruguruman

No problem dude, just please vote +1 on the answer to set it as accepted and may be useful to others like you :)

Nov 23 '11 at 02:45 PM SkaredCreations

It is actually a particular type of a prefab ;) See the PrefabType for more information.

You can do changes to a model-prefab but only with an AssetPostProcessor during import time. Unity have to reimport the asset if the actual file has changed. All manual changes would be lost.

The usual way is to create a new prefab like @ZioRed said ;). That way only the Mesh is linked.

Nov 23 '11 at 04:47 PM Bunny83
(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:

x1260
x728
x54
x9

asked: Nov 23 '11 at 07:28 AM

Seen: 793 times

Last Updated: Nov 23 '11 at 04:47 PM