Avatar SDK
How to access .vrm avatar assets for authenticated users.
Last updated
Was this helpful?
How to access .vrm avatar assets for authenticated users.
Last updated
Was this helpful?
VIVERSE provides an identity and avatar system to help users express themselves in 3D worlds, as well as several default public avatars.
BEFORE GETTING STARTED: you must before requesting user-specific avatars. Non-authenticated users can still make requests to the public avatar list.
After authenticating, use getToken()
to get an access token to make requests for user data to the VIVERSE Avatar SDK.
Once the avatar client is instantiated, you have access to the following methods:
getActiveAvatar()
: get user's default, active avatar, formatted as:
getAvatarList()
: get user's avatar list. This will return an array of objects formatted as above.
getProfile()
: get the user's display name and active avatar. The return object is formatted as:
getPublicAvatarList()
: get the list of default, publicly-available VIVERSE avatars as an array of objects formatted as above.
getPublicAvatarById(id)
: get a specific public avatar according to a known ID.
getAvatarFileWithSDK(url)
: provide a URL to an avatar asset to load its array buffer. Returns an array buffer.