Table of Contents

Class MouthDecalRenderer

Namespace
Gasimo.FaceToon.Mouth
Assembly
Gasimo.FaceToons.MouthAnimator.URP.dll

Version of IMouthRenderer that uses a UnityEngine.Rendering.Universal.DecalProjector to render the mouth. Used by MouthAnimatorBase.

[RequireComponent(typeof(DecalProjector))]
public class MouthDecalRenderer : MonoBehaviour, IMouthRenderer
Inheritance
Object
Component
Behaviour
MonoBehaviour
MouthDecalRenderer
Implements

Methods

SetCollection(Texture2DArray)

Set the mouth collection to be used on this renderer.

public void SetCollection(Texture2DArray frame)

Parameters

frame Texture2DArray

SetFlipped(bool)

Set the mouth to be flipped or not.

public 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.

public void SetIndex(int Index)

Parameters

Index int

Index of texture to be displayed.