Skip to content

Use avatar presets

Last updated

An avatar preset is a file (.amra) that records an avatar’s name and the scale multipliers for other avatars that share its base body. When a preset matches the avatar you are editing, it is used for the displayed name and for choosing scale multipliers.

Place .amra files inside Assets/_AMARI_DATA/Avatars/ (subfolders are allowed). Presets are loaded when the editor starts or scripts reload, and the name of the preset matching the current avatar appears in the AvatarPreset field of the window.

After adding or changing presets, click ReloadAvatarPreset in the window to reload them. Files that cannot be read are skipped, and a warning appears in the Console.

In a preset’s SharedBaseBody, you can register other avatars that share the base body, together with the scale multiplier to use for their items.

  • Click Scale by Preset in an item group to list the registered avatars as “name (multiplier)”. The multiplier you choose is entered in Scale Multiply. Only avatars whose own presets are also loaded are listed. If there are no candidates, “No shared base body candidates were found” is shown.
  • When you import an .amri file exported on another avatar, the scale multiplier is replaced with the registered value if the source avatar is registered in SharedBaseBody.

An .amra file is JSON with the following keys. All four keys are required.

Key Contents
AvatarName An object with language codes (for example, ja-JP or en-US) as keys and avatar names as values
ShopName An object with language codes as keys and shop names as values
AvatarPrefabGuids An array of GUIDs of the avatar prefabs this preset applies to
SharedBaseBody An object with GUIDs of other avatars’ prefabs that share the base body as keys and scale multipliers as values

The name in the display language is used. If there is none, the en-US name is used.