Some questions on animated textures

Hey guys, I’m having some trouble wrapping my head around an issue I’m having.

I have a 3d model as my main player character. His face however is a textured 2d graphic (eyes, mouth etc).

In Photoshop I animated his eyes to blink, and in 3DS max I applied that animated texture to his face. When I press the play button sure enough his eyes blink and so on, it works well.

However, I want to take this a step further. I want to be able to have a range of expressions on his face via this animated texture. And I want them to only play when I say.

How would I go about doing that?

I know I’m going to have to have different animated textures per expression. But how can I control which one plays in Unity when I want it to play? How can I switch textures out and so forth seamlessly?

Or, if anyone knows a better way of going about this I’m all ears :stuck_out_tongue:

No one has any ideas on how to go about doing this? D:

You can switch textures within a script by setting renderer.material.mainTexture:-

var myTex: MovieTexture;
   ...

renderer.material.mainTexture = myTex;

You just need to set the face to the desired MovieTexture at the right time and play it.

I see, and I could just switch back and forth, back and forth between textures this way?