EyeAnimationHandler

Animate avatar eye blinking.

Rotates and blinks the eyes of the avatar randomly.

To add eye blinking to your avatar, do one of the following.

  • Select Component > Ready Player Me >EyeAnimationHandler.

  • At runtime, use Unity's AddComponent() method.

Properties

PropertyTypeDescription

BlinkSpeed

float

How fast the eyes blink in seconds.

BlinkInterval

float

Frequency of eye blinking in seconds.

Example

private void AvatarLoadedCallback(GameObject avatar)
{	
    avatar.AddComponent<EyeRotationHandler>();
}

Last updated

#130: Asset API

Change request updated