Adding Preset Avatars
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.
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.
2.2 Setting content in the AvatarFile
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
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
The motion may be registered here.
2.2.3 Emotion
The emote animation may be registered here.
2.2.4 Objects
The objects to be held by the avatar may be registered here.
3. Implementing AvatarFile to the WorldSettings
Put the AvatarFile into the AvatarFile list of the WorldSettings.
This will add the avatar to the preset avatar view.
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.