Skip to main content

GLTFAvatarLoader

This is the default avatar loader. Use GLTFUtility to download and import Ready Player Me data, such as .glb files.

Inspector Variables

VariableDescription
ControllerThe run-time animation controller that would be installed on the avatar.
AvatarThe avatar being processed
Head Anim LoaderThe prefab for loading head and eye animations, which by default is null.

Events

EventTypeDescription
AvatarLoadedAction<InworldCharacter>Triggered once ConfigureModel() is completed

API

FunctionReturn TypeDescriptionParameters
ConfigureModelvoidbind InworldCharacterData to target .glb modelcharacter: the InworldCharacterDatato load, model: the model to attach to
ImportIEnumeratorImplements interface functionsurl: a string of URLs to download avatars.
LoadDatagameObjectLoads data from memory (bytestring) to generate a gameObjectcontent: data to load
LoadDatagameObjectLoads data from file to generate a gameObjectfileName: file to load