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
Property
Type
Description
AvatarConfig
AvatarConfig
Avatar Configuration instance used when downloading avatars.
AvatarImporter
IAvatarImporter
Avatar Importer instance used for importing the GLB model.
โ
Public Methods
Method
Returns
Description
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
Event
EventArgs
Description
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