Adventure Creator  1.79.1
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2022
AC.FaceFXIntegration Class Reference

Static Public Member Functions

static bool IsDefinePresent ()
 Checks if the 'FaceFXIsPresent' preprocessor has been defined. More...
 
static void Play (AC.Char speaker, string name, AudioClip audioClip)
 Plays a FaceFX animation on a character, based on an AudioClip. More...
 
static void Stop (AC.Char speaker)
 Stops the FaceFX animation on a character. More...
 

Detailed Description

A class the contains a number of static functions to assist with FaceFX integration. To use FaceFX with Adventure Creator, the 'FaceFXIsPresent' preprocessor must be defined.

Member Function Documentation

◆ IsDefinePresent()

static bool AC.FaceFXIntegration.IsDefinePresent ( )
static

Checks if the 'FaceFXIsPresent' preprocessor has been defined.

Returns
True if the 'FaceFXIsPresent' preprocessor has been defined

◆ Play()

static void AC.FaceFXIntegration.Play ( AC.Char  speaker,
string  name,
AudioClip  audioClip 
)
static

Plays a FaceFX animation on a character, based on an AudioClip.

Parameters
speakerThe speaking character
nameThe unique identifier of the line in the format Joe13, where 'Joe' is the name of the character, and '13' is the ID number of ths speech line
audioClipThe speech AudioClip

◆ Stop()

static void AC.FaceFXIntegration.Stop ( AC.Char  speaker)
static

Stops the FaceFX animation on a character.

Parameters
speakerThe speaking character