umasteeringgroup / UMA

Unity Multipurpose Avatar
MIT License
739 stars 168 forks source link

Fix Region Dependant Parsing on UMAProperties #433

Closed ccouprie closed 4 months ago

ccouprie commented 4 months ago

I realized some users of my game had their character being invisible, I identified that it was because they had their computer region settings in German Switzerland (float format being 1'000'000,00) and other countries had similar issues. So I checked and in the UMAMaterialPropertyBlock the parsing of the color properties depends on the region settings of the player when the writing of the color properties is done accordingly to the dev's region settings.

So I added CultureInfo.InvariantCulture to the parsing and the writing to make it region independant