> For the complete documentation index, see [llms.txt](https://myty.gitbook.io/products/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://myty.gitbook.io/products/sdk/myty-sdk-interface/select-avatar.md).

# Select Avatar

## Background

Pair of <mark style="color:purple;">`AvatarCollectionId`</mark> and <mark style="color:purple;">`TokenId`</mark> is passed to Unity to select specific loaded avatar.

## Input parameters

### AssetCollectionId

Determines <mark style="color:purple;">`AvatarCollectionId`</mark> of the selecting loaded avatar

### TokenId

Determines <mark style="color:purple;">`TokenId`</mark> of the selecting loaded avatar

## Example Usage

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