playMaker

Author Topic: stringtoVector3  (Read 2263 times)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15371
  • Official Playmaker Support
    • View Profile
stringtoVector3
« on: January 09, 2012, 04:15:11 AM »
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

  • Beta Group
  • Hero Member
  • *
  • Posts: 630
    • View Profile
    • Flashing Lights
Re: stringtoVector3
« Reply #1 on: January 14, 2020, 03:14:58 AM »
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
« Last Edit: January 15, 2020, 07:24:16 AM by 600 »

600

  • Beta Group
  • Hero Member
  • *
  • Posts: 630
    • View Profile
    • Flashing Lights
Re: stringtoVector3
« Reply #2 on: January 23, 2020, 08:16:36 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

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
« Last Edit: January 23, 2020, 08:31:36 AM by 600 »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15371
  • Official Playmaker Support
    • View Profile
Re: stringtoVector3
« Reply #3 on: January 26, 2020, 10:48:44 PM »
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