Forum rules - please read before posting.

Text Mesh Pro - Text Reveal Effect

I've done a bit of searching on the forums and cant find anyone talking about this specific issue.

An issue I'm having with my dialogue text is that as it's written out typewriter-style, words are jumping to a new line as they get too long for the current line. It seems like the current system feeds TMP one character at a time for the typewriter effect.
TMP has a tutorial for their own typewriter effect that inputs the entire text at once, allowing for better formatting as it's typed out.

I'm wondering if there's a way to inject this into the AC dialogue system without breaking all the waits and timings I've added, or if something like this already exists and I'm blind as a bat.

Thanks in advance!


  • Solved! Maybe...

    Change line 469 of MenuLabel.cs to:
    string line = speech.FullText;
    and add
    uiText.maxVisibleCharacters = speech.currentCharIndex;

    Then in Speech.cs add:
    currentCharIndex = displayText.Length;
    to the StopScrolling() function and make the currentCharIndex variable public.

    I haven't extensively tested this, but it seems to do the trick for my needs.

  • Welcome to the community, @14hourlunchbreak.

    Interesting tweak! I'll have a look into this myself.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.