Skip to content

Adding Preset Avatars

PresetAvatar_1

In VketCloudSDK, the world may provide a variety of preset avatars in addition to the users' own avatars.
The preset avatar list can be accessed via "Setting"-->"Mypage"-->"Avatar"-->"Preset Avatar".

Before setting a preset avatar, the character model must be converted to the VRM format.

1. Create an avatar with its texture compressed

For optimising avatars to appear on smartphones, texture compression is essential.<br

Texture compression method is same as the Texture Compression.

2. Creating an AvatarFile

2.1 Create an AvatarFile via HEOWorldSetting

VketCloudSDK stores avatar infomation in an AvatarFile format, using the file to list preset avatars on world build.

PresetAvatar_2

By pressing CreateAvatarFile in the Avatars tab of HEOWorldSetting, a new AvatarFile is created.

By pressing the +/- on the bottom right of the AvatarFile list, a new article on the preset avatar list will be added/deleted.
The AvatarFile will not be deleted even if the list article is deleted.

Issue enabling edit on Default AvatarFile

Following a certain procedure, the issue causing the default AvatarFile(Vketchan_v1.6_Mtoon_blendshape) to be editable may be triggered.
As editing the default avatar may cause unexpected performance, please create a new AvatarFile on adding a new preset avatar.
As the default avatar is protected by the package, the editing will be resetted on restarting the Unity editor. Therefore, please refrain from editing the default avatar.

Note

There may be edge cases where the AvatarFile list won't appear and the "CreateAvatarFileForOldData" will appear.<br>
This is due to old avatar data remaining when using older SDK projects by newer versions.<br>
By pressing the button, the old avatar data will be converted to an AvatarFile list.

PresetAvatar_3

2.2 Setting content in the AvatarFile

AvatarFile_1

By selecting an AvatarFile in the project, the content will be displayed on the Inspector View.
The settings are divided by category tabs.

Each category details are on the AvatarFile page.

2.2.1 .vrm

AvatarFile_1

The avatar's .vrm may be registered here.
The .hrm files of the compressed avatar data can be designated as well.

2.2.2 Motion

AvatarFile_2

The motion may be registered here.

2.2.3 Emotion

AvatarFile_3

The emote animation may be registered here.

2.2.4 Objects

AvatarFile_4

The objects to be held by the avatar may be registered here.

3. Implementing AvatarFile to the WorldSettings

PresetAvatar_4

Put the AvatarFile into the AvatarFile list of the WorldSettings.
This will add the avatar to the preset avatar view.

PresetAvatar_5

The AvatarFile can also be edited by selecting on the AvatarFile list.
As this view does not show the entire settings, we recommend to select the AvatarFile on the project view, then editing it on the Inspector view.