IAvatarLoader
This is the interface for loading avatars. It is implemented by different providers. If you would like to use your customized avatar loader, then you will need to: (1) inherit this interface; (2) create a prefab with your own inherited avatar loader; (3) set it as the Avatar Loader
for InworldAI
.
API
Function | Return Type | Description | Parameters |
---|---|---|---|
ConfigureModel | void | For binding InworldCharacterData to avatar gameObjects | character: the InworldCharacterData to load, model: the model to attach |
Import | IEnumerator | For loading avatars from the stream of URLs | url: a string of URLS to download avatars |
LoadData | gameObject | For loading avatar from memory or bytestring | content: data to load |
LoadData | gameObject | For loading avatar from local files | fileName: file to load |