Please Select Your Location
Australia
Österreich
België
Canada
Canada - Français
中国
Česká republika
Denmark
Deutschland
France
HongKong
Iceland
Ireland
Italia
日本
Korea
Latvija
Lietuva
Lëtzebuerg
Malta
المملكة العربية السعودية (Arabic)
Nederland
New Zealand
Norge
Polska
Portugal
Russia
Saudi Arabia
Southeast Asia
España
Suisse
Suomi
Sverige
台灣
Ukraine
United Kingdom
United States
Please Select Your Location
België
Česká republika
Denmark
Iceland
Ireland
Italia
Latvija
Lietuva
Lëtzebuerg
Malta
Nederland
Norge
Polska
Portugal
España
Suisse
Suomi
Sverige

Function usage

The Avatar API includes the following global functions:

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.