Reply To: Overwriting Captions

Slate Forums Support Overwriting Captions Reply To: Overwriting Captions

#1716
Gavalakis
Keymaster

Hello,

Just to clarify what is going on, when you override the default GUI, like we do here, nothing from the default GUI (aka DirectorGUI) is executed or used by default, since we completely override it and as such, we need to tell our GUI exactly how to display the information.

Thus, the solution to that, is to also add a “Font” variable to our CustomGUIExample.cs script and change the script to use the supplied font:

There will now be a “font” variable in the inspector of the above script.

Regarding the “(Clone)” naming issue, thanks for letting me know.
To fix this quickly, please open up PlayAudio.cs file and change line #96 to be like this:
DirectorGUI.UpdateSubtitles(string.Format("{0}{1}", parent is ActorAudioTrack? (actor.name.Replace("(Clone)", "") + ": ") : "", subtitlesText), lerpColor);

Let me know if the above work for you.
Thanks.

Join us on Discord: https://discord.gg/97q2Rjh