- Home /
switch between models
i have 5 different meshes to be used for the game character. how can i switch/crossfade between those meshes? i was thinking about putting instance of them as children of an empty gameobject, then crossfade between the "old" and the "new" current mesh and switch off the others completely. how do i do that in unity? thanks, flexrails
Answer by Thomas · Dec 02, 2009 at 02:03 PM
Maybe one of the latest Unity blog entries might contain some answers for your problem: http://blogs.unity3d.com/2009/11/25/character-customization-assetbundles/
Answer by Ashkan_gc · Dec 02, 2009 at 03:16 PM
there are many ways to do that. you can create 5 prefabs of the game object with different meshes. you can change the mesh filter component and it's properties to change the mesh of current gameobject. there are many ways. many , many!!!
Answer by jashan · Dec 10, 2009 at 05:02 PM
Your question got answered in crossfade between 2 models
Look for the accepted answer (right under the question) to find a nice description of how you can achieve this effect.
Oh, and using the approach with a parent game object and then having several children certainly is a good idea (that's missing in that other answer).
Your answer
Follow this Question
Related Questions
Why is this issue occurring with my models? 1 Answer
White lines between blocks in voxel terrain 1 Answer
Draw call count not consistent in prefab vs model 1 Answer
Minecraft Models 0 Answers
Scaling down models 2 Answers