Skip to content

Commit 07aaebd

Browse files
author
Cory Leach
committed
Fixed duration of playable text mesh effects
1 parent 6743885 commit 07aaebd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Runtime/Effects/PlayableTextMeshEffect.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ private IEnumerator RunAnimation()
142142
{
143143
var characterCount = effectManager.Text.textInfo.characterCount;
144144
_progress = 0;
145-
while (_progress < characterCount)
145+
var duration = (delayPerCharacter * characterCount) + characterAnimationDuration;
146+
while (_progress < duration)
146147
{
147148
_progress += Time.deltaTime * speed;
148149
yield return null;

0 commit comments

Comments
 (0)