跳到主要内容

Class Typewriter

Text typewriter.

Events

onStoped

Called when stoped.

public event Action onStoped;

onFinished

Called when Finish(whether completed or stopped).

public event Action onFinished;

onCompleted

Called when Completed.

public event Action onCompleted;

onUpdated

public event Action onUpdated;

Properties

interval

public float interval { get; set; }

text

public string text { get; set; }

enableRichText

public bool enableRichText { get; set; }

Constructors

Typewriter(string text)

public Typewriter(string text)

Typewriter(float interval)

public Typewriter(float interval)

Typewriter(bool enableRichText)

public Typewriter(bool enableRichText)

Typewriter(string text, float interval)

public Typewriter(string text, float interval)

Typewriter(string text, bool enableRichText)

public Typewriter(string text, bool enableRichText)

Typewriter(string text, float interval, bool enableRichText)

public Typewriter(string text, float interval, bool enableRichText)

Methods

Start()

public Coroutine Start()

Start(string text)

public Coroutine Start(string text)

Start(string text, float interval)

public Coroutine Start(string text, float interval)

Stop()

public void Stop()