Use Timeline to set sub-title on UI

I want to display some text on screen during the animation. How can I do that?

The simplest way is to set up the text in the scene on a disabled object and use an Activation Track to turn it on.

A more complex way is to create your track to handle it. Here’s an example that will add a custom track that can set the title and color on a UI Text component.

3113560–235459–SubtitleExample.unitypackage (6.82 KB)

7 Likes

Wow, very powerful, this example is exactly what I looking for.

Thanks!

Thank you for this example seant_unity! This should be included in the editor!

First of all thanks Seant_Unity for saving me a lot of time in scripting the Subtitles!!!

Btw is possible to upgrade this with TextMeshpro? :roll_eyes::roll_eyes:

Also i have a script that make the text write letter by letter, but the Subtitle track is just ignore him, :eyes: Any idea how to do this? Thanks

I wrote a more robust example version of @seant_unity 's code (which is a great start). It comes with multiple examples, demonstrates dynamic binding, and solves some issues I ran into trying to use it as a dialogue box system.

2 Likes

is this your script? i feel thee need to credit you lol