Changing the Windows system language can remove commas from float nodes.
tracked
xCirrex
Make an Udon graph with your windows system language set to Swedish and place in a float with a decimal, say "0.3".
Change your system language to English and open the same graph and it will remove the comma and convert the float to "3". The change is permanent and does not revert if you change the system language back.
Log In
Fax
Merged in a post:
Udon graph float serialization is culture specific
Nestorboy
When declaring constant floats or doubles, the serialization and deserialization uses the culture specific decimal separator. This becomes an issue when sharing graphs or changing your local culture, as it will make the floats and doubles fail to parse and default back to 0. What I expect is for the decimal separator to always be a period for serialization and deserialization, and it already seems to be the case for more complex types like Vector3 since I believe they are serialized using Odin, which seems to handle this properly.
Fax
tracked
Thanks for reporting this!
xCirrex
This also happens when I send a copied graph to someone with English as their system language. As an example, the following code looks like the attached picture on my Swedish system language:
application/vnd.unity.graphview.elements AOWTZW7BMAzhxyXQ2QoKS5BSAdm1OXT7RTTCLIDQBX14C+RCLtDMsZ5shZ3SXMFYEzQFMMi5TKfCF1okrfin/V/+/RNGP1xDARP9W6OYQ+TPAHL/0LWRwUQWuQ+dw1QoVNYqghdv44bz+qfwn/p5ue8zp5ErnsdysnkLgp7jrANqkhuramGeccoXkibHnuYUk6of1txqmkzkrkcx+kzpq9dnjdbodo1ssoykqss0ksnsmydXwli+OG/JTIGzBQUYgDMJgeAMsQYifludhUkX+2VKYuttsw2jd6agmc1jdlNSYv4sINnRdc6y0axkyjce3geiWylkurndv5jt6k16io09xa4f8bp+diZmDMjxqhjtum7axtkaKdhig3wesnc/hj08uekgj8/pgg8fg9vkawm4nsymi5j9j9yO18yo9yO0wYg3woSNC/hj08uekgj8/pgg8fg9vkawm4nsymi5j9j9yO18YO9yO9YMi5j9yO18yoOVQ0HKYO+ICV3UY+NLPUJLVYXXV/AA3DVFHN+SPUPVG8JFHILYP1Q8H63ZNBDE2EBTT7NZ1UNVXZLBSTEPRSH/ a5ae2q6vumckELrghkhcbkhq52s76vo4r7cor15anx0ahlsdmfrnuv+f/k80ps/5UNviggyyeksekysrcwqwjf1eqhhautiyljymaidmdxjkvr4zxqxskvi8gokw2r3seenfe5lzwzkimmhorwyiR4zxqXskvi8goKW2r3sEENFE5lzwzkimmhorwyiYiYiN4zXqXkVI8GOkw2r3sEENFE5LzWzkImmHorwYiR4zXqXSKVi8goKw2R3SeenFe5LZwZkWzKmHorwYIwYiYIbyigkuhegkanoqxgabf8b