Table of Contents

Interface IMouthRenderer

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

Interface for mouth renderers. Defines common methods for applying mouth textures. Used by MouthAnimatorBase.

public interface IMouthRenderer

Methods

SetCollection(Texture2DArray)

Set the mouth collection to be used on this renderer.

void SetCollection(Texture2DArray texArray)

Parameters

texArray Texture2DArray

Array to pick expressions from

SetFlipped(bool)

Set the mouth to be flipped or not.

void SetFlipped(bool flipped = false)

Parameters

flipped bool

Should the texture be flipped?

Remarks

Used for characters that have view-angle dependent mouth sprites or similar such as MouthAnimatorDouble.

SetIndex(int)

Selects the texture to be displayed on this renderer from the UnityEngine.Texture2DArray collection and applies it.

void SetIndex(int Index)

Parameters

Index int

Index of texture to be displayed.