#130: Asset API
Change request updated 1 year ago
Animate avatar eye blinking.
Last updated 1 year ago
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.
AddComponent()
BlinkSpeed
float
How fast the eyes blink in seconds.
BlinkInterval
Frequency of eye blinking in seconds.
private void AvatarLoadedCallback(GameObject avatar) { avatar.AddComponent<EyeRotationHandler>(); }