why prefab link is lost when adding physics

Hi,

Currently, when I add a script to a prefab, I am loosing the connection with it.

EDIT: I was wrong saying 'prefab', I meant actually models imported ( assets). Icons are very similar, only the little white page on the bottom right hints for an asset and not a prefab ( it's in the doc Manual/Prefabs.html... but should be clearer)

I find odd that adding components make me loose the connection with the prefab. I do not alter the model the mesh nor the shader, nothing from the prefab itself. I am just adding on top of it.

I was expecting the same behavior as the 3dsmax stack when the instance remains while you add features.

Is it normal? how can one go about it? because obviously changes occurs in the prefab during development. I am certainly missing something here in the workflow. What is the best way to work with prefab that will change overtime?

thanks,

Jean

The prefab will still take the changes of your original model when you save your max file. If you add new objects to your max file you have to maually drag them in your prefab and when you press apply the new prefab will overwrite its instances.

2 Answers

2

Just apply any changes to the prefab when you're done. No big deal. Alternately, when selecting the prefab in the project view, you're working with it directly, so you can add/remove components without breaking the connection in the first place.

This totally works. The way I do it: make changes to one of the instanced prefab objects, then select it from the Hierarchy tab and drag drop it over the prefab in the Project tab. Presto: updated prefab! It's scary the first time but you get over it. :)

Ok, I think I got it, my understanding of how models were imported was wrong, I was working directly with the fbx importer models, and not with a prefab I created where I dropped the models and then work on them. Things seems to work now. Thanks ( I have edited my post to make sure there is no confusion as what I was talking about)

just another tip when editing prefab directly in the project view: you can't drag scripts directly from the project view to another node in the project view it seems, instead you have to use the menu: component->script-> then scripts are listed.

@Goody: thanks for the tip for dragging back, it works well, tho only when I drag the prefab root in the scene over the prefab root in the project view, else I get warnings "possibly unwanted prefab replacement". I seem not to be able to drag one model within that prefab back. But that's not a problem at all.

No worries. :)

Also, now 3.5 accepts component addition to prefab without breaking them.