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

Public Attributes

Transform jawBone
 
Coord coordinateToAffect
 
float rotationFactor = 10f
 
bool isAdditive = true
 

Protected Member Functions

void Awake ()
 
void LateUpdate ()
 

Protected Attributes

float volume
 
float bin = 0.04f
 
int width = 64
 
float output
 
float[] array
 
Quaternion jawRotation
 
AudioSource _audio
 
Quaternion originalRotation
 
Char _character
 

Detailed Description

A component that provides simple lipsyncing, Half Life 1-style, in which a jaw bone rotates with the volume of the sound that the GameObject is emitting.

Member Data Documentation

◆ coordinateToAffect

Coord AC.AutoLipSync.coordinateToAffect

Which axis to rotate the bone around

◆ isAdditive

bool AC.AutoLipSync.isAdditive = true

If True, rotations will be added, rather than replace, existing animation

◆ jawBone

Transform AC.AutoLipSync.jawBone

The jaw bone to rotate

◆ rotationFactor

float AC.AutoLipSync.rotationFactor = 10f

The rotation factor