Learn how to add character expressions to your dialogue system. We'll use an enum to represent the different character moods, and then set up corresponding portraits for each character. With that in place we can take the character's mood into account when displaying each line of dialogue.
This video builds on earlier videos. You can find the complete code for this project (Unity 2019 project), at the following address. Be sure to open the SampleScene when after opening the project, then run it.
Github:
https://github.com/draffauf/unity-dia...
Chapters:
00:00 Intro
01:00 Start in Unity
01:45 Lines and expressions
03:30 Characters and portraits
04:10 Add sprite to character for each expression
04:30 Setting expressions (mood)
06:00 Mood enum and Unity inspector editing
06:45 Using the Line's mood when changing dialogue
07:30 Refactor and clean code
09:25 Test out the refactoring
09:45 Conclusion
Social:
🌍 Website: https://restfulcoder.com/
💬 Discord: / discord
📷 Instagram: / restfulcoder
🐦Twitter: / restfulcoder
📱 Tiktok: / restfulcoder