- Home /
Change character mesh during runtime
Hey guys- I have a character who has 4 different faces/heads. I want to be able to change the heads by pushing 1, 2, 3, or 4 respectively. However, I still want my character controller's rig and animations to be continuous (for example, I should be able to switch heads in the middle of walking)
Does anyone have any idea how to do this?
If your model is rigged, then the heads should also be rigged. Should it not be as simple as recursively setting active/inactive the ones you want or don't want displayed? During say an Awake() or Start() function?
In almost ALL cases, an animated character is actually animating the "Armature" which is a skeleton, and the mesh is seperate, but animated simultaneously.
Hmm I didn't really think of it that way, but that should work! Thank you! I guess I will just include all the different meshes in the FBX and have them all sitting in the same transform, with the same animator. Only thing is it might be a bit processor intensive to have 4 character meshes sitting on top of each other... Will try it out!