x


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

more ▼

asked Dec 02 '09 at 01:24 PM

flexrails gravatar image

flexrails
706 29 35 55

(comments are locked)
10|3000 characters needed characters left

3 answers: sort voted first

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/

more ▼

answered Dec 02 '09 at 02:03 PM

Thomas gravatar image

Thomas
378 6 8 14

(comments are locked)
10|3000 characters needed characters left

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!!!

more ▼

answered Dec 02 '09 at 03:16 PM

Ashkan_gc gravatar image

Ashkan_gc
9.1k 33 56 117

(comments are locked)
10|3000 characters needed characters left

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).

more ▼

answered Dec 10 '09 at 05:02 PM

jashan gravatar image

jashan
10.1k 25 40 116

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x574
x492
x82

asked: Dec 02 '09 at 01:24 PM

Seen: 2732 times

Last Updated: Dec 10 '09 at 04:58 PM