Skip to main content

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

FunctionReturn TypeDescriptionParameters
ConfigureModelvoidFor binding InworldCharacterData to avatar gameObjectscharacter: the InworldCharacterData to load, model: the model to attach
ImportIEnumeratorFor loading avatars from the stream of URLsurl: a string of URLS to download avatars
LoadDatagameObjectFor loading avatar from memory or bytestringcontent: data to load
LoadDatagameObjectFor loading avatar from local filesfileName: file to load