I have reported this problem before but it is not solved.
In my scene I have a complex gameobject (FPS player) with many dependencies in his hierarchy (camera, other gameobjects…). One of them is a weapon with an animation clip,made with Unity, attached. It works well in the scene (the animation plays correctly). If I create a prefab (and I follow the steps very carefully to make the prefab, you can be sure) with this gameobject, the resulting prefab DO NOT INCLUDE the animation clip, I mean the animation clip is missed in the prefab and of course if I instantiate a new object from this in my scene it also doesn´t have the animation clip…
The case is (I have tried it) but is NOT POSSIBLE to attach the animation clip manuallly in the created prefab, I mean I select the animation clip for the weapon object but it is not attached to it in the Inspector.
Is this a bug, because the animation stuff is not in the 2.5 version? (the animation clip was created with Unity 2.1 version). Any idea?.
Would you mind to post a step by step breakdown on how you created the prefab and how you conclude its not there?
I know this might sound stupid but there are commonly small details forgotten or overseen that lead to such problems.
From the documentation:
“Choose Assets->Create->Prefab from the menu bar and name your new Prefab.
In Hierarchy View, select the GameObject you wish to make into a Prefab.
Drag drop the GameObject from the Hierarchy onto the new Prefab in Project View.”
I follow these instructions carefully.
I have created lots of prefabs previously without any problems.
In the created prefab I look into the weapon object in the Inspector and the Animation part says: “None”.
In this prefab, if I try to attach manually to the weapon the animation clip (the one I created with Unity 2.1), that is included in the original game object, it is not changed, it always is set to “None” in the animation part like it were fixed or locked and no change is allowed here…
I think it must be a bug.