Skip to main content

Class DialogueEntry

A rule entry representing a single dialogue line.

public class DialogueEntry : RuleEntry, IHasSpeaker, IAutoplayable, IHasLifeTime, IAudioEntry, ITextEntry, ISpriteEntry

Inheritance​

RuleEntry→DialogueEntry

Implements​

Fields​

m_dialogueType​

Indicates whether this dialogue line is spoken or an internal thought.

[Header("Layout")]
[Tooltip("Whether this line should be a speaking dialogue or an internal thought.")]
public DialogueEntry.DialogueType m_dialogueType

Field Value​

DialogueEntry.DialogueType

Properties​

Audio​

The audio clip associated with this entry.

public AudioClip Audio { get; }

Property Value​

AudioClip

AutoplayDuration​

Duration before the entry automatically moves on.

public float AutoplayDuration { get; }

Property Value​

float

CanAutoPlay​

Value indicating whether the entry can autoplay.

public bool CanAutoPlay { get; }

Property Value​

bool

CanPlayAudio​

Indicates whether this entry has audio that can be played.

public bool CanPlayAudio { get; }

Property Value​

bool

HasLifeTime​

Value indicating whether the entry has lifetime.

public bool HasLifeTime { get; }

Property Value​

bool

IsThought​

Returns true if this dialogue line is an internal thought, false if it’s spoken aloud.

public bool IsThought { get; }

Property Value​

bool

LifetimeDuration​

Lifetime duration.

public float LifetimeDuration { get; }

Property Value​

float

Speaker​

Gets the actor entry representing the speaker of this dialogue or event.

public ActorEntry Speaker { get; }

Property Value​

ActorEntry

Text​

The main text content to display.

public string Text { get; }

Property Value​

string

Title​

A short title or header for the text entry.

public string Title { get; }

Property Value​

string

sprite​

Gets the sprite used as an icon or display image.

public Sprite sprite { get; }

Property Value​

Sprite

  • Fields
    • m_dialogueType
  • Properties
    • Audio
    • AutoplayDuration
    • CanAutoPlay
    • CanPlayAudio
    • HasLifeTime
    • IsThought
    • LifetimeDuration
    • Speaker
    • Text
    • Title
    • sprite