Search Unity

Use Timeline to set sub-title on UI

Discussion in 'Timeline' started by Klamore74, Jun 9, 2017.

  1. Klamore74

    Klamore74

    Joined:
    Jun 17, 2013
    Posts:
    27
    I want to display some text on screen during the animation. How can I do that?
     
  2. seant_unity

    seant_unity

    Unity Technologies

    Joined:
    Aug 25, 2015
    Posts:
    1,010
    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.
     
  3. seant_unity

    seant_unity

    Unity Technologies

    Joined:
    Aug 25, 2015
    Posts:
    1,010
    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.
     

    Attached Files:

    Ash-Blue, z00n and andreyefimov2010 like this.
  4. Klamore74

    Klamore74

    Joined:
    Jun 17, 2013
    Posts:
    27
    Wow, very powerful, this example is exactly what I looking for.

    Thanks!
     
  5. Endar

    Endar

    Joined:
    Aug 13, 2014
    Posts:
    3
    Thank you for this example seant_unity! This should be included in the editor!
     
  6. Kiba123

    Kiba123

    Joined:
    Dec 1, 2018
    Posts:
    3
    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? :rolleyes::rolleyes:

    Also i have a script that make the text write letter by letter, but the Subtitle track is just ignore him, o_O Any idea how to do this? Thanks
     
  7. Ash-Blue

    Ash-Blue

    Joined:
    Aug 18, 2013
    Posts:
    94
    Volkerku and seant_unity like this.
  8. CRISTALSONIC

    CRISTALSONIC

    Joined:
    Sep 22, 2016
    Posts:
    30
    is this your script? i feel thee need to credit you lol