GLTFAvatarLoader
This is the default avatar loader. Use GLTFUtility to download and import Ready Player Me data, such as .glb
files.
Inspector Variables
Variable | Description |
---|
Controller | The run-time animation controller that would be installed on the avatar. |
Avatar | The avatar being processed |
Head Anim Loader | The prefab for loading head and eye animations, which by default is null . |
Events
Event | Type | Description |
---|
AvatarLoaded | Action<InworldCharacter> | Triggered once ConfigureModel() is completed |
API
Function | Return Type | Description | Parameters |
---|
ConfigureModel | void | bind InworldCharacterData to target .glb model | character: the InworldCharacterDatato load, model: the model to attach to |
Import | IEnumerator | Implements interface functions | url: a string of URLs to download avatars. |
LoadData | gameObject | Loads data from memory (bytestring) to generate a gameObject | content: data to load |
LoadData | gameObject | Loads data from file to generate a gameObject | fileName: file to load |