replacing the 3d model

Hi,

How do i replace game asset 3d model with a new one so that i wont have to re-setup my components and the animator states?

thanks

bump

Uhmmm make it into a Prefab perhaps?

You might need to make your question more clear though, so people can understand what it is you’re looking for.

When your iterating on models - you will have to re-setup various things - depending on what you’ve changed. It’s a good idea to make prefabs - but if you find the model updates aren’t propagating to the prefab - you have to go and remake the prefab. You can write a an editor script that runs that sets up all the things you find yourself repeating when re-importing. It’s always a tradeoff between scripting all your setup, and having the freedom to use the editor tools to setup your models. As for animator states - they should remain intact when your re-importing things. If your using humanoid rigs - have one model where you have the animation, and another which retargets to it, which you use in game. End of the day - you’ll probably be copy / pasting top-level component scripts from old prefabs to new. I suppose it’s a goal to be able to script the creation of all the components from the raw asset instantiation. Not sure how often that happens in practice.

I dont think prefab is the solution because i am looking for a way to replace a asset. I have a 3d model with components and animator states setup. But if i want to replace that 3d model with a newer version, i have to transfer the components from the old one to the new one and on top of that, i have to also re-setup my animator states…

I am wondering if there is a way to quickly and easily replace the asset pieces.

Drop the 3D model onto the prefab in the Project view folder. It will ask you if you really want to do that. Do it.