Dialogue Speaker UGUI

🎭 DialogueSpeakerUGUI Class

Represents a character in dialogue, handling name display and character sprite rendering for uGUI.

Namespace: Esper.FeelSpeak.UI Inherits from: DialogueSpeaker Type: class


📦 Fields

Access
Field
Type
Description

public

nameLabel

TextMeshProUGUI

The label that displays the speaker's name.

public

characterImage

Image

The image that displays the speaker character's sprite.


🧰 Methods

Access
Method
Returns
Description

public

UpdateAnimation()

void

Updates the animation if animated sprites is enabled and an animation is available for the speaker. This should be called in an Update method.

public

SetActive(Color?)

void

Sets the speaker as active, showing the name and applying active sprite coloring.

public

SetInactive(Color?)

void

Sets the speaker as inactive, hiding the name and applying inactive sprite coloring.

public

SetData(DialogueNode)

void

Sets the speaker data from a dialogue node and updates all visual elements.

public

UpdateElements()

void

Updates all visual elements including name display, text colors, and character sprites.

public

SpriteAnimationCoroutine()

IEnumerator

A coroutine that handles the sprite animation.

Last updated