Typewriter Effect One Frame Delay Causes Flicker?
Posted: Tue May 24, 2022 7:25 pm
Hello,
I've been struggling to figure out a solution to this for a while, and was hoping I could get some help.
Basically, I have a TextMeshProTypewritterEffect component for Subtitle Text, and I need the "Wait One Frame Before Starting" box to be checked. The issue is that checking this box causes the text to appear for a split second (whenever a new line of dialogue is shown), then disappear and typewrite normally. This flickering effect doesn't look nice, and I'm searching for a solution to it.
Is there a way to call code at the start of a line of dialogue? I was thinking I could set the text alpha to 0 at the start of the line, and then set it back to 1 when the typewriter begins the next frame.
The reason I need the "Wait One Frame Before Starting" option is because I have a custom script that sets a different "Audio Clip" for the typewriter depending on which character is speaking (I look at the portrait name for this), and it only works if the typewriter waits a frame. I've tried changing the execution order of my script as well as a few others, but I can't get it to work correctly. Waiting a frame seems to be the only way.
Any help is greatly appreciated, thank you.
Unity 2020.3.33f1
Dialogue System 2.2.27
I've been struggling to figure out a solution to this for a while, and was hoping I could get some help.
Basically, I have a TextMeshProTypewritterEffect component for Subtitle Text, and I need the "Wait One Frame Before Starting" box to be checked. The issue is that checking this box causes the text to appear for a split second (whenever a new line of dialogue is shown), then disappear and typewrite normally. This flickering effect doesn't look nice, and I'm searching for a solution to it.
Is there a way to call code at the start of a line of dialogue? I was thinking I could set the text alpha to 0 at the start of the line, and then set it back to 1 when the typewriter begins the next frame.
The reason I need the "Wait One Frame Before Starting" option is because I have a custom script that sets a different "Audio Clip" for the typewriter depending on which character is speaking (I look at the portrait name for this), and it only works if the typewriter waits a frame. I've tried changing the execution order of my script as well as a few others, but I can't get it to work correctly. Waiting a frame seems to be the only way.
Any help is greatly appreciated, thank you.
Unity 2020.3.33f1
Dialogue System 2.2.27