Page 1 of 1

Changing texture2d of a mesh during dialogue

Posted: Tue Aug 13, 2019 5:17 pm
by 1HappyRobot
I've been looking around for awhile and for most questions I've been able to figure it out through documentation or looking on the forums, but I can't figure this one out.

I use 3d models with 2d textures for faces, and I'd like to change the faces during dialogue to reflect whatever emotion was being used at the time. Sadly I can't find any sequence commands to make this work. A point in the right direction would be appreciated. If you need any extra details feel free to ask.

Re: Changing texture2d of a mesh during dialogue

Posted: Tue Aug 13, 2019 6:43 pm
by Tony Li
Hi,

You could write a custom sequencer command. If you're comfortable with a bit of scripting, they're quite easy to write.

But I recommend setting up an animator on each character instead. Then use one of the Animator sequencer commands, such as AnimatorPlay(), to play an animator state that sets the textures.