# Using an Avatar in-game

This page outlines details on how to use these avatar Urls in-game, via the `CharacterAssetComponent`.

The `CharacterAssetComponent` is found on your morpheus actor (added by default for children of `M2M_CharacterBase`)

## How To Set Your Url

To apply your avatar Url, you can use one of the following:

### Directly Setting your Url

The `CharacterAssetComponent` has a `LoadCharacterFromUrl` function, which allows you to apply your Url.

{% hint style="info" %}
This function must be called on the *authoritative client*, so that it gets replicated to other users.
{% endhint %}

<figure><img src="https://1456550285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoWTlPaoHd1McSakqMigu%2Fuploads%2Fgit-blob-7146800dd6a2278843eb2c24d0b3879cb3df4a05%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

### The Default MML Url

If you want all characters to default to a specific Url, paste the Url into the `DefaultMmlCharacterUrl` field of your Morpheus Actor's `CharacterAssetComponent`:

<figure><img src="https://1456550285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoWTlPaoHd1McSakqMigu%2Fuploads%2Fgit-blob-0a4cde41cc8e9a319fd685217d29d0674e5b34ce%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

### Multi-mesh avatar considerations

The main avatar GLB will be loaded onto the default Mesh component of your pawn actor. If your MML contains multiple GLB meshes (using child `<m-model>` nodes) then an additional `SkeletalMeshComponent` will be created for each sub-mesh.

If you want to make any tweaks to the player mesh after loading (for example disabling shadows) then you may need to iterate the child mesh components and make the change to each of them. Trigger this with the `M2M_CharacterAssetComponent::OnCharacterLoaded` delegate, which is called once all the components have been created.
