Create an Avatar
Create Avatar is how you modify the measurements of a template and create your own avatar. Use the Avatar API to create, select an Avatar and so on.
For more information about the feature, please visit here.
To learn more about the rest of the Avatar API, please refer to Avatar in the repository.
Sample Plugin
Sample plugin for Avatars is available here.
Create a Avatar using a Template
Code Snippet
Python C++ C#
Python
avatarId = BwApi.BwApiAvatarCreate(avatarTemplate, newName, avatarId) # update measurements - the json jsonAvatarMeasurements will be validated with the avatar measurements schema. BwApi.AvatarMeasurementsUpdate(jsonAvatarMeasurements)
C++
BwApiAvatarCreate(avatarTemplate, newName, &avatarId); // update measurements - the json jsonAvatarMeasurements will be validated with the avatar measurements schema. BwApiAvatarMeasurementsUpdate(jsonAvatarMeasurements)
C#
BwApiAvatarCreate(avatarTemplate, newName, &avatarId); // update measurements - the json jsonAvatarMeasurements will be validated with the avatar measurements schema. BwApiAvatarMeasurementsUpdate(jsonAvatarMeasurements)