Class MouthMaterialRenderer
public class MouthMaterialRenderer : MonoBehaviour, IMouthRenderer
- Inheritance
-
ObjectComponentBehaviourMonoBehaviourMouthMaterialRenderer
- Implements
Methods
SetCollection(Texture2DArray)
Set the mouth collection to be used on this renderer.
public void SetCollection(Texture2DArray texArray)
Parameters
texArray
Texture2DArrayArray to pick expressions from
SetFlipped(bool)
Set the mouth to be flipped or not.
public void SetFlipped(bool flipped = false)
Parameters
flipped
boolShould 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
intIndex of texture to be displayed.