Skip to main content

Class TMPTextSwitcherBehaviour

A runtime data container representing the visual state (color, font size, and text content) defined by a single TMPTextSwitcherClip on the Timeline.

While typical PlayableBehaviours may implement logic, this class functions only as a data holder. The TMPTextSwitcherMixerBehaviour reads from this behaviour during playback to apply the visual changes to the bound TMPro.TextMeshProUGUI component.

[Serializable]
public class TMPTextSwitcherBehaviour : PlayableBehaviour

Inheritance​

Fields​

color​

The font color to apply when this clip is active.

public Color color

Field Value​

Color

fontSize​

The font size to apply when this clip is active.

public float fontSize

Field Value​

float

text​

The text content to display on the TMPro.TextMeshProUGUI when this clip has the greatest influence.

public string text

Field Value​

string