To override the GUI, you need to subscribe to the various events that are available in the DirectorGUI class. Each event corresponds to a different GUI functionality, thus in your case, you would want to subscribe to the OnSubtitlesGUI event.
Once you have subscribed to that event, the default subtitles GUI implementation will completely be bypassed and instead be forwarded for you to implement through the event raised.
You can attach this script in the “Director Camera Root” gameobject. In runtime (and runtime only since OnEnable and OnDisable are called in runtime), your implementation will be called, while in editor time the default implementation will be called.
But, if the only thing you want to change is the subtitles size, this might be an overkill. If that is the case, please just open up DirectorGUI.cs and change the SUBS_SIZE field from being private const, to public thus possible to change in inspector. I will keep this change in future version so that the subtitles size can be changed from inspector as well.
Let me know.
Thanks!
Join us on Discord: https://discord.gg/97q2Rjh
Login
Register
By registering on this website you agree to our Privacy Policy.