Typewriter for TextMesh Pro. TMP_Typewriter prints out characters one by one. ( Required the DOTween. )
using KoganeUnityLib;
and call the TMP_Typewriter.Play
.m_typewriter.Play
(
text : "ABCDEFG HIJKLMN OPQRSTU",
speed : m_speed,
onComplete : () => Debug.Log( "Complete !" )
);
m_typewriter.Play
(
text : @"<size=64>ABCDEFG</size> <color=red>HIJKLMN</color> <sprite=0> <link=""https://www.google.co.jp/"">OPQRSTU</link>",
speed : m_speed,
onComplete : () => Debug.Log( "Complete !" )
);
m_typewriter.Play
(
text : @"<sprite=0><sprite=0><sprite=1><sprite=2><sprite=3><sprite=4><sprite=5><sprite=6><sprite=7><sprite=8><sprite=9><sprite=10>",
speed : m_speed,
onComplete : () => Debug.Log( "Complete !" )
);
m_typewriter.Skip(); // with onComplete callback
m_typewriter.Skip( false ); // without onComplete callback
m_typewriter.Pause();
m_typewriter.Resume();
Compatible with CharTweener.