Hi - I am using RPM in my Unity project to make an avatar creator. However, I keep running into the issue where certain assets when selected would not update the selecticon properly. For example, with body shapes, no matter what body shape I select, the average body shape is always displayed with the selected icon. The actual avatar updates with the correctly choosen body shape but it does not display that on the button UI. After some digging I found this in the BodyShapeSelectionElement script:
if (!avatarProperties.Assets.ContainsKey(AssetType.BodyShape))
{
SetButtonSelected(BodyShape.Average.GetDescription());
return;
}
So when I get rid of this if statement that catches any missing asset IDs, I get this error:
KeyNotFoundException: The given key ‘BodyShape’ was not present in the dictionary.
System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) (at <31687ccd371e4dc6b0c23a1317cf9474>:0)
I am not sure why the body shape is not in the dictionary and I am a bit confused on where to look next to solve this issue. Thank you!