Table of Contents

Interface IEyeController

Namespace
Gasimo.FaceToon.Eyes
Assembly
Gasimo.FaceToon.Eyes.dll

Interface for Eye Animators. Contains all the necessary properties used by FaceToons to animate the eyes.

public interface IEyeController

Properties

EyeClosedAmount

How much should the left/right eye be closed. 0 is the index of the open eye. Increase number to close the eye.

Vector2 EyeClosedAmount { get; set; }

Property Value

Vector2

Remarks

When implementing this property, ignore negatives values and ensure the value does not exceed the number of frames in the collection.

EyeSet

The Eye Set to be used for the Eye. Modify this property to change the eye set.

FT_EyeSet EyeSet { get; set; }

Property Value

FT_EyeSet

Remarks

When implementing this property, ignore any null fields manually. EyeSet may be null or contain null fields. Those denote values which should not be changed. It is recommended to use the MergeWith(FT_EyeSet) method to merge the new eye set with the current one."/>

LookAtPosition

LookAt position for the eyes in world space.

Vector3 LookAtPosition { get; set; }

Property Value

Vector3

Remarks

Ignores (0,0,0) values. Those are used to denote that the LookAt position should not be modified.

Methods

ForceUpdate()

Forces the eye to update immediately.

void ForceUpdate()

Remarks

Hook this code to your Material Update code to force the eye to update immediately.