Class MouthAnimatorDouble
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
-
ObjectComponentBehaviourMonoBehaviourMouthAnimatorDouble
- 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
maxAngle
[Header("Angle Settings")]
public int maxAngle
Field Value
maxYContribution
public float maxYContribution
Field Value
spriteIndex
[Header("Sprite Settings")]
[Range(0, 32)]
public int spriteIndex
Field Value
sprites
public FT_FrameMouthMACollection sprites
Field Value
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