Property | Type | Description | |
---|---|---|---|
activeSayDialogs | List |
||
canvasGroup | CanvasGroup | ||
currentCharacterImage | Sprite | ||
fadeCoolDownTimer | float | ||
fadeWhenDone | bool | ||
speakingCharacter | Character | ||
startStoryTextInset | float | ||
startStoryTextWidth | float | ||
stringSubstituter | StringSubstituter | ||
targetAlpha | float | ||
writer | Writer | ||
writerAudio | WriterAudio |
Method | Description | |
---|---|---|
Clear ( ) : void |
Stops writing text and clears the Say Dialog.
|
|
DoSay ( string text, bool clearPrevious, bool waitForInput, bool fadeWhenDone, bool stopVoiceover, |
Write a line of story text to the Say Dialog. Must be started as a coroutine.
|
|
GetSayDialog ( ) : SayDialog |
Returns a SayDialog by searching for one in the scene or creating one if none exists.
|
|
Say ( string text, bool clearPrevious, bool waitForInput, bool fadeWhenDone, bool stopVoiceover, AudioClip voiceOverClip, Action onComplete ) : void |
Write a line of story text to the Say Dialog. Starts coroutine automatically.
|
|
SetActive ( bool state ) : void |
Sets the active state of the Say Dialog gameobject.
|
|
SetCharacter ( Character character ) : void |
Sets the active speaking character.
|
|
SetCharacterImage ( Sprite image ) : void |
Sets the character image to display on the Say Dialog.
|
|
SetCharacterName ( string name, Color color ) : void |
Sets the character name to display on the Say Dialog. Supports variable substitution e.g. John {$surname}
|
|
Stop ( ) : void |
Stop the Say Dialog while its writing text.
|
|
StopPortraitTweens ( ) : void |
Stops all active portrait tweens.
|
Method | Description | |
---|---|---|
Awake ( ) : void | ||
ClearStoryText ( ) : void | ||
GetCanvasGroup ( ) : |
||
GetWriter ( ) : Writer | ||
GetWriterAudio ( ) : WriterAudio | ||
LateUpdate ( ) : void | ||
OnDestroy ( ) : void | ||
Start ( ) : void | ||
UpdateAlpha ( ) : void |
public DoSay ( string text, bool clearPrevious, bool waitForInput, bool fadeWhenDone, bool stopVoiceover, |
||
text | string | The text to display. |
clearPrevious | bool | Clear any previous text in the Say Dialog. |
waitForInput | bool | Wait for player input before continuing once text is written. |
fadeWhenDone | bool | Fade out the Say Dialog when writing and player input has finished. |
stopVoiceover | bool | Stop any existing voiceover audio before writing starts. |
voiceOverClip | Voice over audio clip to play. | |
onComplete | System.Action | Callback to execute when writing and player input have finished. |
return | IEnumerator |
protected GetCanvasGroup ( ) : |
||
return |
public Say ( string text, bool clearPrevious, bool waitForInput, bool fadeWhenDone, bool stopVoiceover, AudioClip voiceOverClip, Action onComplete ) : void | ||
text | string | The text to display. |
clearPrevious | bool | Clear any previous text in the Say Dialog. |
waitForInput | bool | Wait for player input before continuing once text is written. |
fadeWhenDone | bool | Fade out the Say Dialog when writing and player input has finished. |
stopVoiceover | bool | Stop any existing voiceover audio before writing starts. |
voiceOverClip | AudioClip | Voice over audio clip to play. |
onComplete | Action | Callback to execute when writing and player input have finished. |
return | void |
public SetCharacter ( Character character ) : void | ||
character | Character | The active speaking character. |
return | void |
public SetCharacterImage ( Sprite image ) : void | ||
image | Sprite | |
return | void |
public SetCharacterName ( string name, Color color ) : void | ||
name | string | |
color | Color | |
return | void |
protected static Character speakingCharacter | ||
return | Character |
protected StringSubstituter stringSubstituter | ||
return | StringSubstituter |