playMaker

Author Topic: String Join for Array bug[SOLVED]  (Read 965 times)

chinper

  • Playmaker Newbie
  • *
  • Posts: 13
    • View Profile
String Join for Array bug[SOLVED]
« on: April 25, 2016, 03:21:09 AM »
Hi,

Not sure if anyone have this issue, The StringJoin script returns correct values when the array values are pre-defined but when changing the array value at run time the script returns zero value.

1.Create Array variable with string format. Set size to 3
2.On start, add Array Set action to add value on each array
3.Add String Join action
4.Run to see the result.
« Last Edit: April 24, 2017, 11:38:17 PM by jeanfabre »

realrobo

  • Playmaker Newbie
  • *
  • Posts: 14
    • View Profile
Re: String Join for Array bug
« Reply #1 on: June 08, 2016, 11:46:04 PM »
I don't have this issue right now, so I assume the bug has been fixed.  However, there is another bug regarding String Join action right now.  It seems like the last value is not added to the resulting String.

If I run String Join action on String Array of [100,200,300,400], the final resulting string is 100,200,300.
I tried various sizes, and the last element of the array is always missing.

I am using the latest Unity  5.4b20 and Playmaker 1.8.1

krane

  • Junior Playmaker
  • **
  • Posts: 63
    • View Profile
Re: String Join for Array bug
« Reply #2 on: January 28, 2017, 07:34:09 AM »
I have the same problem on string arrays-- i.e. the last value is not added. see image

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12342
  • Official Playmaker Support
    • View Profile
Re: String Join for Array bug
« Reply #3 on: February 06, 2017, 12:47:32 AM »
Hi,

 can you wait one frame before using the result? does that help?

 Bye,

 Jean

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12342
  • Official Playmaker Support
    • View Profile
Re: String Join for Array bug
« Reply #4 on: February 06, 2017, 12:48:16 AM »
Hi,

 also, make sure you use the dedicated uGUI package on the Ecosystem to work with the UI system, it's much better and more performant then using setPoperty.

 Bye,

 Jean

swpowe

  • Playmaker Newbie
  • *
  • Posts: 1
    • View Profile
Re: String Join for Array bug
« Reply #5 on: April 24, 2017, 09:23:37 PM »
Any solution for this? I'm having both of these issues with Unity 5.5.2 and the latest version of Playmaker.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12342
  • Official Playmaker Support
    • View Profile
Re: String Join for Array bug
« Reply #6 on: April 24, 2017, 11:38:01 PM »
Hi,

ah yes, this needs to be fixed internally or within these actions. We are discussing what is the best way to solve this without affecting perfs.

meanwhile, I have put on the Ecosystem an Action to saveChanges so that any combination of array actions will work. Likely, a fix will be done internally, but meanwhile, this is the best approach I think,



 Bye,

 Jean