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.
Changing texture2d of a mesh during dialogue
-
- Posts: 4
- Joined: Tue Aug 13, 2019 5:13 pm
Re: Changing texture2d of a mesh during dialogue
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.
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.