Select Avatar

Describe how to send message to Unity to select loaded avatar

Background

Pair of AvatarCollectionId and TokenId is passed to Unity to select specific loaded avatar.

Input parameters

AssetCollectionId

Determines AvatarCollectionId of the selecting loaded avatar

TokenId

Determines TokenId of the selecting loaded avatar

Example Usage

function selectAvatar(avatarCollectionId: number, tokenId: string)
{
  sendMessage("MessageHandler", "SelectAvatar", JSON.stringify({
    avatarCollectionId: avatarCollectionId,
    tokenId: tokenId
  }))
}

Last updated