跳到主要内容

Class FadeinTypewriter

Properties

paused

Is paused?

public bool paused { get; private set; }

timeScale

public bool timeScale { get; set; }

fadeinRangePercentage

Indicates the size of the fade-in overlay bounding box. The size is based on a percentage of the RectTransform width and is in the range[0, 1].

public float fadeinRangePercentage { get; set; }

singleLineFadeinDuration

Indicates how long it takes to display a line of text.

public float singleLineFadeinDuration { get; set; }

textMeshProUGUI

public TextMeshProUGUI textMeshProUGUI { get; set; }

Constructors

FadeinTypewriter(bool timeScale)

public FadeinTypewriter(bool timeScale)

FadeinTypewriter(float singleLineFadeinDuration)

public FadeinTypewriter(float singleLineFadeinDuration)

FadeinTypewriter(TextMeshProUGUI textMeshProUGUI)

public FadeinTypewriter(TextMeshProUGUI textMeshProUGUI)

FadeinTypewriter(TextMeshProUGUI textMeshProUGUI, bool timeScale)

public FadeinTypewriter(TextMeshProUGUI textMeshProUGUI, bool timeScale)

FadeinTypewriter(TextMeshProUGUI textMeshProUGUI, float singleLineFadeinDuration)

public FadeinTypewriter(TextMeshProUGUI textMeshProUGUI, float singleLineFadeinDuration)

FadeinTypewriter(TextMeshProUGUI textMeshProUGUI, float singleLineFadeinDuration, bool timeScale)

public FadeinTypewriter(TextMeshProUGUI textMeshProUGUI, float singleLineFadeinDuration, bool timeScale)

Methods

Start()

public Coroutine Start()

Start(string text)

public Coroutine Start(string text)

Start(string text, float singleLineFadeinDuration)

public Coroutine Start(string text, float singleLineFadeinDuration)

Start(string text, float fadeinRangePercentage, float singleLineFadeinDuration)

public Coroutine Start(string text, float fadeinRangePercentage, float singleLineFadeinDuration)

Start(TextMeshProUGUI textMeshProUGUI, string text, float fadeinRangePercentage, float singleLineFadeinDuration)

public Coroutine Start(TextMeshProUGUI textMeshProUGUI, string text, float fadeinRangePercentage, float singleLineFadeinDuration)

Pause()

public void Pause()

Unpause()

public void Unpause()

Stop([bool resetTextColor = true])

public void Stop([bool resetTextColor = true])