Changing texture2d of a mesh during dialogue

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
1HappyRobot
Posts: 4
Joined: Tue Aug 13, 2019 5:13 pm

Changing texture2d of a mesh during dialogue

Post 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.
User avatar
Tony Li
Posts: 22049
Joined: Thu Jul 18, 2013 1:27 pm

Re: Changing texture2d of a mesh during dialogue

Post 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.
Post Reply