readyplayerme / rpm-unity-sdk-core

This Module contains all the core functionality required for using Ready Player Me avatars in Unity, including avatar loading and creation
MIT License
97 stars 33 forks source link

Avatar creator has wrong skin, hair color selected. #325

Open Archi97 opened 3 days ago

Archi97 commented 3 days ago

In the Sample of Avatar Creator (scene - AvatarCreatorWizard) when the avatar is loaded the skin and hair color are set to the 1st one: This comes from the code in AssetButtonCreator, line 88.

But this is wrong as the 1st color is not the correct one. I have looked into the other item(Eye Color) to see how is it set, and saw that it is actually an asset that gets created at the beginning, and colors are not counted as assets. How can we know the index of color and set it correctly?

Steps to reproduce the behavior:

  1. Create Unity Project
  2. Import RPM SDK, set the domain and API token and sample 'avatar creator',
  3. run scene AvatarCreatorWizard
  4. Create a new avatar from the template, and select the prelast avatar with green hair.
  5. in the editor go to the hair style tab, and check the color - it is ~brown

Expected behavior Green Color must be selected.

image

Desktop (please complete the following information):