How it works...

In this recipe, we use Animation Events to synchronize subtitles with the cutscene. The principle is the same as in the Using Animation Events to trigger sound and visual effects recipe in Chapter 7, Special Effects. The Subtitles.cs script also handles showing and hiding the subtitles, depending on the value of the subtitlesText variable set by the public voidSetSubitltes(string text) function that we call with the Animation Events.

If you want to localize your subtitles, use string localization keys instead of text. The Subtitles.cs script will then have to search for the text in your localization base using those keys.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
13.58.185.199