Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.SpeechAnimations.SpeechAnimationPlayback Class Reference
Inheritance diagram for Dragengine.SpeechAnimations.SpeechAnimationPlayback:

Classes

class  Phoneme

Public Member Functions

void addPhoneme (SpeechAnimationPhoneme phoneme, float duration)
AnimatorInstance getAnimatorInstance ()
float getDuration ()
float getElapsed ()
float getSpeakBlend ()
 Speak blending factor.
bool getSpeaking ()
SpeechAnimation getSpeechAnimation ()
SpeechAnimationPlayback new ()
void readFromFile (PersistencyEnvironment env, FileReader reader)
void removeAllPhonemes ()
void setSpeechAnimation (SpeechAnimation speechAnimation)
void update (float elapsed)
 Updates the speech animation.
void writeToFile (PersistencyEnvironment env, FileWriter writer)

Public Attributes

AnimatorInstance pAnimatorInstance
Array pControllers
float pDuration
float pElapsed
Array pPhonemes
int pPosition
bool pRequiresApply
float pSpeakBlend
bool pSpeaking
SpeechAnimation pSpeechAnimation

Detailed Description

Speech animation Playback.

Member Function Documentation

◆ addPhoneme()

void Dragengine.SpeechAnimations.SpeechAnimationPlayback.addPhoneme ( SpeechAnimationPhoneme phoneme,
float duration )

Adds a speak phoneme.

References pAnimatorInstance, and pControllers.

Referenced by writeToFile().

◆ getAnimatorInstance()

AnimatorInstance Dragengine.SpeechAnimations.SpeechAnimationPlayback.getAnimatorInstance ( )

Retrieves the animator instance.

References new().

Referenced by getSpeaking().

◆ getDuration()

float Dragengine.SpeechAnimations.SpeechAnimationPlayback.getDuration ( )

Retrieves the duration of the speaking.

References new(), pControllers, and pRequiresApply.

Referenced by update(), and writeToFile().

◆ getElapsed()

float Dragengine.SpeechAnimations.SpeechAnimationPlayback.getElapsed ( )

Retrieves the elapsed time.

Referenced by readFromFile().

◆ getSpeakBlend()

float Dragengine.SpeechAnimations.SpeechAnimationPlayback.getSpeakBlend ( )

Speak blending factor.

Version
1.21

If speaking this is 1 if a viseme is playing or 0 if not. Values in between represent blending in and out of speaking. Can be used to avoid animators affecting speech animation driven bones or vertex position sets while speaking.

References pAnimatorInstance, pControllers, pSpeechAnimation, and setSpeechAnimation().

Referenced by writeToFile().

◆ getSpeaking()

bool Dragengine.SpeechAnimations.SpeechAnimationPlayback.getSpeaking ( )

Determines if the playback is still running.

References getAnimatorInstance(), getSpeechAnimation(), pAnimatorInstance, and pSpeechAnimation.

Referenced by writeToFile().

◆ getSpeechAnimation()

SpeechAnimation Dragengine.SpeechAnimations.SpeechAnimationPlayback.getSpeechAnimation ( )

Retrieves the speech animation or null if not assigned.

References new(), pAnimatorInstance, pDuration, and pPhonemes.

Referenced by getSpeaking().

◆ new()

SpeechAnimationPlayback Dragengine.SpeechAnimations.SpeechAnimationPlayback.new ( )

Creates a new speech animation playback.

References pControllers, pRequiresApply, and pSpeakBlend.

Referenced by getAnimatorInstance(), getDuration(), getSpeechAnimation(), and writeToFile().

◆ readFromFile()

void Dragengine.SpeechAnimations.SpeechAnimationPlayback.readFromFile ( PersistencyEnvironment env,
FileReader reader )

Reads the element from a file.

References getElapsed(), and pElapsed.

Referenced by writeToFile().

◆ removeAllPhonemes()

void Dragengine.SpeechAnimations.SpeechAnimationPlayback.removeAllPhonemes ( )

Remove all phonemes.

Referenced by writeToFile().

◆ setSpeechAnimation()

void Dragengine.SpeechAnimations.SpeechAnimationPlayback.setSpeechAnimation ( SpeechAnimation speechAnimation)

Sets the speech animation or null if not assigned.

References pElapsed, pPosition, and pSpeaking.

Referenced by getSpeakBlend().

◆ update()

void Dragengine.SpeechAnimations.SpeechAnimationPlayback.update ( float elapsed)

Updates the speech animation.

This updates the playback and updates animator instances if required. This does not apply the animation yet to allow proper use of state capturing.

References getDuration(), and pDuration.

Referenced by writeToFile().

◆ writeToFile()

void Dragengine.SpeechAnimations.SpeechAnimationPlayback.writeToFile ( PersistencyEnvironment env,
FileWriter writer )

Member Data Documentation

◆ pAnimatorInstance

AnimatorInstance Dragengine.SpeechAnimations.SpeechAnimationPlayback.pAnimatorInstance

◆ pControllers

Array Dragengine.SpeechAnimations.SpeechAnimationPlayback.pControllers

◆ pDuration

float Dragengine.SpeechAnimations.SpeechAnimationPlayback.pDuration

◆ pElapsed

float Dragengine.SpeechAnimations.SpeechAnimationPlayback.pElapsed

◆ pPhonemes

Array Dragengine.SpeechAnimations.SpeechAnimationPlayback.pPhonemes

Referenced by getSpeechAnimation(), and writeToFile().

◆ pPosition

int Dragengine.SpeechAnimations.SpeechAnimationPlayback.pPosition

Referenced by setSpeechAnimation(), and writeToFile().

◆ pRequiresApply

bool Dragengine.SpeechAnimations.SpeechAnimationPlayback.pRequiresApply

Referenced by getDuration(), new(), and writeToFile().

◆ pSpeakBlend

float Dragengine.SpeechAnimations.SpeechAnimationPlayback.pSpeakBlend

Referenced by new(), and writeToFile().

◆ pSpeaking

bool Dragengine.SpeechAnimations.SpeechAnimationPlayback.pSpeaking

Referenced by setSpeechAnimation(), and writeToFile().

◆ pSpeechAnimation

SpeechAnimation Dragengine.SpeechAnimations.SpeechAnimationPlayback.pSpeechAnimation

Referenced by getSpeakBlend(), and getSpeaking().


The documentation for this class was generated from the following file: