Initialization

How to initialize Feel Speak.

Initialize

The Initialize method establishes a database connection with Feel Speak. This is necessary to call before using Feel Speak's API.

FeelSpeak.Initialize();

It's recommended to let Feel Speak know what your current player speaker, main camera, and FX audio source are by simply setting the fields.

FeelSpeak.activePlayerSpeaker = mySpeaker;
FeelSpeak.mainCamera = myCamera;
FeelSpeak.fxAudioSource = myAudioSource;

Alternatively, you can provide the references during initialization.

FeelSpeak.Initialize(mySpeaker, myCamera, myAudioSource);

Terminate

Terminate does the opposite of Initialize. It's recommended to call this when Feel Speak is no longer needed (i.e. user exits the game or returns to the main menu).

FeelSpeak.Terminate();