Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

replacing the 3d model

Discussion in 'Editor & General Support' started by iikii, Jan 7, 2015.

  1. iikii

    iikii

    Joined:
    Apr 25, 2012
    Posts:
    73
    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
     
    Last edited: Jan 8, 2015
  2. iikii

    iikii

    Joined:
    Apr 25, 2012
    Posts:
    73
    bump
     
  3. N1warhead

    N1warhead

    Joined:
    Mar 12, 2014
    Posts:
    3,884

    Uhmmm make it into a Prefab perhaps?
     
  4. randomperson42

    randomperson42

    Joined:
    Jun 29, 2013
    Posts:
    974
  5. KristianDoyle

    KristianDoyle

    Joined:
    Feb 3, 2009
    Posts:
    63
    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.
     
  6. iikii

    iikii

    Joined:
    Apr 25, 2012
    Posts:
    73
    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.
     
  7. ippdev

    ippdev

    Joined:
    Feb 7, 2010
    Posts:
    3,789
    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.