Table of Contents

Class MouthAnimatorDouble

Namespace
Gasimo.FaceToon.Mouth
Assembly
Gasimo.FaceToon.Mouth.dll

Sample implementation of a mouth animator that uses two sprites for the mouth and changes them based on the angle of the camera.

[ExecuteInEditMode]
public class MouthAnimatorDouble : MouthAnimatorBase<FT_FrameMouthMA>
Inheritance
Object
Component
Behaviour
MonoBehaviour
MouthAnimatorDouble
Inherited Members

Fields

Camera

[Header("References")]
public Camera Camera

Field Value

Camera

MouthRenderer

public Transform MouthRenderer

Field Value

Transform

frontMouthMaxAngle

public float frontMouthMaxAngle

Field Value

float

maxAngle

[Header("Angle Settings")]
public int maxAngle

Field Value

int

maxYContribution

public float maxYContribution

Field Value

float

spriteIndex

[Header("Sprite Settings")]
[Range(0, 32)]
public int spriteIndex

Field Value

int

sprites

public FT_FrameMouthMACollection sprites

Field Value

FT_FrameMouthMACollection

Methods

SetMouthCollection(FT_FrameCollectionBase<FT_FrameMouthMA>)

Sets mouth collection for this mouth animator.

public override void SetMouthCollection(FT_FrameCollectionBase<FT_FrameMouthMA> collection)

Parameters

collection FT_FrameCollectionBase<FT_FrameMouthMA>

SetSpriteIndex(int)

Sets the frame index to be displayed for this mouth animator

public override void SetSpriteIndex(int index)

Parameters

index int