Class SubtitleDataEntry
Contains data for 1 line of dialogue.
[Serializable]
public class SubtitleDataEntry : ISubtitleEntry
- Inheritance
-
SubtitleDataEntry
- 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
displayFor
How long will this subtitle be displayed for.
public float displayFor
Field Value
speaker
Display name of speaker/object which plays the dialogue. Leave empty for none (useful for sounds).
[SerializeField]
public string speaker
Field Value
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
Methods
getAudio()
AudioClip of the subtitle
public AudioClip getAudio()
Returns
- AudioClip
AudioClip with sound for this entry
getDialogue()
Dialogue string of the subtitle
public string getDialogue()
Returns
- string
Dialogue
getDisplayFor()
How long should the subtitle be visible for?
public float getDisplayFor()
Returns
getSpeaker()
Speaker name for the subtitle, will prefix the dialogue in this format: speaker:dialogue (Optional)
public string getSpeaker()
Returns
- string
Speaker Name
getSubtitleEvent()
public ScriptableEvent getSubtitleEvent()
Returns
getWaitFor()
How long should subtitler pause before playing this line? (If in sequence, relative to last played subtitle)
public float getWaitFor()