Template Selection Element

The TemplateSelectionElement lets you choose an avatar template to start with. Users can select an avatar that best represents their identity.


Place the TemplateSelectionElement prefab in your Hierarchy and access the TemplateSelectionElement script's public methods to load assets and manage their selection.

To load the assets, you need to call the LoadAndCreateButtons method.

public async Task LoadAndCreateButtons();

When an asset button is clicked, the TemplateSelectionElement fires a UnityEvent. You can cast the IAssetData response to AvatarTemplateData, which contains all the information needed for the AvatarManager to update and load the new avatar.

public UnityEvent<IAssetData> OnAssetSelected;


Customizing the TemplateSelectionElement is very similar to adapting the AssetSelectionElement. See Asset Selection Element.

Last updated