https://github.com/baba-s/TMP_Typewriter
Typewriter for TextMesh Pro. TMP_Typewriter prints out characters one by one. ( Required the DOTween. )
https://github.com/baba-s/TMP_Typewriter
kogane-unity-lib textmeshpro unity unity-script unity3d
Last synced: 5 months ago
JSON representation
Typewriter for TextMesh Pro. TMP_Typewriter prints out characters one by one. ( Required the DOTween. )
- Host: GitHub
- URL: https://github.com/baba-s/TMP_Typewriter
- Owner: baba-s
- License: mit
- Created: 2018-12-25T05:35:25.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-25T12:38:41.000Z (almost 7 years ago)
- Last Synced: 2024-11-12T17:47:35.987Z (11 months ago)
- Topics: kogane-unity-lib, textmeshpro, unity, unity-script, unity3d
- Language: ShaderLab
- Homepage: http://baba-s.hatenablog.com/entry/2018/12/26/090000
- Size: 1.05 MB
- Stars: 93
- Watchers: 4
- Forks: 12
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-unity-open-source-on-github - TMP_Typewriter - Typewriter for TextMesh Pro (TextMesh Pro)
README
# TMP_Typewriter
Typewriter for TextMesh Pro. TMP_Typewriter prints out characters one by one. ( Required the DOTween. )
[](https://github.com/baba-s/TMP_Typewriter/releases)
[](https://github.com/baba-s/TMP_Typewriter/releases)


[](https://github.com/baba-s/TMP_Typewriter/blob/master/LICENSE)## Features
- Support for Rich Text
- Skippable
- Can pause and resume
- OnComplete callback
- Compatible with [CharTweener](https://github.com/mdechatech/CharTweener)## Version
- Unity 2018.3.0f2
- TextMesh Pro 1.3.0
- DOTween 1.2.055## How To Use

1. Download and import .unitypackage from [Releases](https://github.com/baba-s/TMP_Typewriter/releases).
2. Add a TMP_Typewriter component to the GameObject.
3. Add `using KoganeUnityLib;` and call the `TMP_Typewriter.Play`.## Example
### Normal

```cs
m_typewriter.Play
(
text : "ABCDEFG HIJKLMN OPQRSTU",
speed : m_speed,
onComplete : () => Debug.Log( "Complete !" )
);
```### Rich Text

```cs
m_typewriter.Play
(
text : @"ABCDEFG HIJKLMN OPQRSTU",
speed : m_speed,
onComplete : () => Debug.Log( "Complete !" )
);
```### Sprite

```cs
m_typewriter.Play
(
text : @"",
speed : m_speed,
onComplete : () => Debug.Log( "Complete !" )
);
```### Skip

```cs
m_typewriter.Skip(); // with onComplete callback
m_typewriter.Skip( false ); // without onComplete callback
```### Pause & Resume

```cs
m_typewriter.Pause();
m_typewriter.Resume();
```### Other

Compatible with [CharTweener](https://github.com/mdechatech/CharTweener).