playMaker

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

cper

  • Playmaker Newbie
  • *
  • Posts: 17
String Join for Array bug[SOLVED]
« on: April 25, 2016, 06: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 25, 2017, 02:38:17 AM by jeanfabre »

realrobo

  • Playmaker Newbie
  • *
  • Posts: 23
Re: String Join for Array bug
« Reply #1 on: June 09, 2016, 02:46:04 AM »
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
Re: String Join for Array bug
« Reply #2 on: January 28, 2017, 09: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: 15500
  • Official Playmaker Support
Re: String Join for Array bug
« Reply #3 on: February 06, 2017, 02:47:32 AM »
Hi,

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

 Bye,

 Jean

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: String Join for Array bug
« Reply #4 on: February 06, 2017, 02: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
Re: String Join for Array bug
« Reply #5 on: April 25, 2017, 12:23:37 AM »
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: 15500
  • Official Playmaker Support
Re: String Join for Array bug
« Reply #6 on: April 25, 2017, 02:38:01 AM »
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