Avatar Runtime Link
The avatar runtime link component is automatically added to the GameObject by the Avatar Ready Setup component.
The avatar runtime link component contains UnityEvents that can be subscribed to.
These events are triggered during the different steps of the avatar loading process.
- class Inria.Avatar.AvatarReady.AvatarReadyRuntimeLink : MonoBehaviour
Allows developper to get callbacks when an avatar is loaded or destroyed.
Public Members
- UnityEvent OnAvatarStartLoad
Called when an avatar starts loading.
- UnityEvent<GameObject> OnAvatarLoaded
Called when the new avatar is ready, the avatar gameObject is given in parameter.
- UnityEvent<GameObject> OnAvatarCalibrated
Called when the avatar calibration has been updated.
- UnityEvent OnAvatarDestroy
Called when an Avatar is about to get destroyed (and a new one will replace it). Use it to clear links between scripts and the avatar about to be Destroy.