Class SubtitleDataEntry
Contains data for 1 line of dialogue.
[Serializable]
public class SubtitleDataEntry : ISubtitleEntry
- Inheritance
-
objectSubtitleDataEntry
- Implements
Fields
audio
AudioClip which will play simultaneously with the subtitle line. Can be left empty to not play sound.
public AudioClip audio
Field Value
- AudioClip
dialogue
Written Closed-Captions
public string dialogue
Field Value
- string
displayFor
How long will this subtitle be displayed for.
public float displayFor
Field Value
- float
speaker
Display name of speaker/object which plays the dialogue. Leave empty for none (useful for sounds).
[SerializeField]
public string speaker
Field Value
- string
subtitleEvent
Programmable event which gets ivoked when this subtitle gets played. Useful to trigger mechanics exactly when player hears a certain line.
public ScriptableEvent subtitleEvent
Field Value
waitFor
Delay between last Subtitle line and this one. Leave 0 to play at same time as previous line.
public float waitFor
Field Value
- float