Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Changing TextMeshPro Text at certain times

Discussion in 'Getting Started' started by gagster00, Sep 30, 2023.

  1. gagster00

    gagster00

    Joined:
    Sep 27, 2022
    Posts:
    2
    I'm trying to create a project where I'll have two TextMeshPro objects on screen. I want to change the text at certain times. For example, I may want the first change to happen at the two second mark and then change again at the five second mark, etc.

    I was thinking that I could do this in Timeline, but I don't see any way to call a script to change the value of the TextMeshPro objects at the correct times.

    I plan to do this to create a video to post on YouTube.

    If anyone has any suggestions on how to do this, I'd greatly appreciate it.
     
  2. Check Timeline signals. You basically add a marker on the Timeline at the appropriate time and you can call a Unity Event. It can be a script with a public method on it.
     
    gagster00 likes this.
  3. gagster00

    gagster00

    Joined:
    Sep 27, 2022
    Posts:
    2
    Great! Thank you very much. I have now got this working.