How do I cleanly spawn a new prefab to replace my current player character at runtime?

Hey guys! I'm in a situation where I want to implement the following:
1. Scene loads.
2. A generic player prefab spawns.
3. Player walks to an objective.
4. Player has to select a body type.
5. The generic player object is destroyed and a new player prefab is spawned based on the body type.

What would be the right way of doing this?
 
If your different characters all use the same avatar, you can simply switch the mesh on the skinned mesh renderer. Otherwise, there is currently no support for a clean switch of the character. Version 3 (released within the next 4 - 8 weeks) will support this.
 
If your different characters all use the same avatar, you can simply switch the mesh on the skinned mesh renderer. Otherwise, there is currently no support for a clean switch of the character. Version 3 (released within the next 4 - 8 weeks) will support this.
I actually think I've somewhat figured it out, but still looking forward to your release :) In my case I've got different slightly different rigs for different body types, otherwise I would've gone for the mesh switch like you suggested.
 
Top