Skip to main content

IEyeHeadAnimLoader

This is the interface for loading eye and head animations. It is currently null and only supports the basic feature of looking at the player. We do have default support for Realistic Eye Movements

To implement this, you can do the following:

  1. Purchase and download the package
  2. Add LookTargetController and EyeAndHeadAnimator to the Inworld Character Prefab
  3. Create a prefab with the script inherited from the interface GetComponent<EyeAndHeadAnimator>().
  4. Allow the script to call ImportFromJson() with the data stored at Resources/Animations/
  5. Put the prefab inside the head anim loader for GLTFAvatarLoader

If you would like to implement your own head animation, you can also create a prefab with a script that inherits this interface. Put that prefab inside the GLTFAvatarLoader's HeadAnimLoader.

API

FunctionReturn TypeDescriptionParameters
SetupHeadMovementvoidFor setting up head and eye movementsavatar: the model to attach