AvatarObjectLoader
The AvatarObjectLoader class is used for loading and downloading avatar models and configuring the output.
AvatarObjectLoader was previously called AvatarLoader but has since changed with the introduction of the new modular Unity SDK or Unity SDK 2.0
Properties
AvatarConfig
AvatarConfig
Avatar Configuration instance used when downloading avatars.
AvatarImporter
IAvatarImporter
Avatar Importer instance used for importing the GLB model.
Public Methods
LoadAvatar(string url)
void
Initiates avatar download and import operations. Takes an Avatar URL as a parameter.
Cancel()
void
Cancels the current avatar loading process. Fires OnFailed
event with FailureEventArgs
as OperationCancelled
.
Events
OnCompleted
CompletionEventArgs
Called upon avatar loader success.
OnFailed
FailureEventArgs
Called upon avatar loading failure.
OnProgressChanged
ProgressChangedEventArgs
Called upon avatar loader progress change.
Example
Last updated