PlayMaker Updates & Downloads > Share New Actions

stringtoVector3

(1/1)

jeanfabre:
Hi,

 I posted it in the wrong section: Follow the thread below to find the custom to parse a string into a vector3 with quite a lot of flexibility in the string formatting.

http://hutonggames.com/playmakerforum/index.php?topic=967.0

 Bye,

 Jean

600:
Hi,
Thank you for this great action, using it in so many places through out my projects.

Had no issues with it until now when migrating to Unity 2018, would it be the case Unity 2018 have different formatting definitions? Can this be updated while not braking the current action usage?

Please check attached screenshot taken in Unity 2018, PM1.9.

Here's the action Vector3 to String (not on Ecosystem)
https://hutonggames.com/playmakerforum/index.php?topic=921.0

Regards


Edit 15-01-2020:
Compared same actions combination in Unity 2017, looks like in Unity 2018 the "." (dot) in numbers are replaced with "," (comma), so it ends up in 111,11,222,22,333,33 instead of 111.11,222.22,333.33

600:

--- Quote from: 600 on January 14, 2020, 05:14:58 AM ---Compared same actions combination in Unity 2017, looks like in Unity 2018 the "." (dot) in numbers are replaced with "," (comma), so it ends up in 111,11,222,22,333,33 instead of 111.11,222.22,333.33

--- End quote ---

Bump.
Tested on Mac and all is working fine as expected.
No idea how this is running different on Windows... can someone test?

Edit [Solved]:
It seems an issue of Windows region or OS language settings and Unity converts periods to commas.
One editor script fixes it https://forum.unity.com/threads/decimal-separator-randomly-becoming-something-that-looks-like-a-comma.257708/?_ga=2.226255965.652525236.1579787418-2133386803.1568815498

jeanfabre:
Hi,

 uhm, that's really not cool at all... you can really go crazy with these kind of bugs...

Thanks for posting the link on the fix.

Bye,

 Jean

Navigation

[0] Message Index

Go to full version