Function usage
GetAvatarList()
void GetAvatarList(StatusCallback2 callback)
Name | Type | Description |
callback | StatusCallback2 |
This function retrieves the list of avatars belonging to the currently logged-in user. The callback message is the avatar data (
Viveport.Avatar.AvatarData
), which can be parsed into a list using
Viveport.Avatar.ParseAvatarList
.
DownloadAvatar() with ID
void DownloadAvatar(Statuscallback2 callback, int id)
Name | Type | Description |
callback | StatusCallback2 | |
id | int | Avatar ID |
This function downloads the binary file of the avatar associated with the avatar ID you enter. This function is limited to the currently logged-in user. The callback message is the path of the downloaded binary file.
DownloadAvatar() with URL
void DownloadAvatar(StatusCallback2 callback, string url)
Name | Type | Description |
callback | StatusCallback2 | |
url | string | Download link for the binary file of the avatar |
This function downloads the binary file of an avatar associated with the download link (URL) you enter. This function is not limited to the currently logged-in user. The callback message is the path of the downloaded binary file. Because the binary file of an avatar is encrypted, the download link on its own is not enough to access the data contained in the binary file. This API is required in order to decrypt the downloaded binary file.