Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Replace object without removing the attaching files ?

Discussion in '5.5 Beta' started by Quast, Sep 6, 2016.

  1. Quast

    Quast

    Joined:
    Jul 5, 2015
    Posts:
    560
    If i have a cube in my scene with script,rigidbody and animation. If I can replace this cube without removing the attaching files will be good feature.
     
  2. Adam-Mechtley

    Adam-Mechtley

    Administrator

    Joined:
    Feb 5, 2007
    Posts:
    290
    Hi there! What exactly are you wanting to replace and what are you wanting to retain? Could you give an example please?
     
  3. Quast

    Quast

    Joined:
    Jul 5, 2015
    Posts:
    560
    OK. If you have a cube with animation go up and down. Now if i want to replace this cube with another object "sphere or Capsule" and keep the animation as it with the new object.
     
  4. Adam-Mechtley

    Adam-Mechtley

    Administrator

    Joined:
    Feb 5, 2007
    Posts:
    290
    Thanks for clarifying! It sounds like this isn't actually a beta issue, but you should be able to accomplish what you want by either a) swapping out the Mesh field on your MeshFilter component or b) using a prefab and the standard workflows for propagating changes to prefab instances.