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:
- Purchase and download the package
- Add
LookTargetController
andEyeAndHeadAnimator
to the Inworld Character Prefab - Create a prefab with the script inherited from the interface
GetComponent<EyeAndHeadAnimator>()
. - Allow the script to call
ImportFromJson()
with the data stored atResources/Animations/
- Put the prefab inside the head
anim
loader forGLTFAvatarLoader
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
Function | Return Type | Description | Parameters |
---|---|---|---|
SetupHeadMovement | void | For setting up head and eye movements | avatar: the model to attach |