playMaker

Author Topic: Array List Copy To not working  (Read 1644 times)

Zanderfax

  • Playmaker Newbie
  • *
  • Posts: 14
Array List Copy To not working
« on: May 24, 2017, 12:16:35 PM »
I have been trying to get the Array List Copy To action to work. I have tried both having the two proxies on the same game object and having separate game objects with each having a proxy on it.

I have run debugs, the original array has the data I am expecting, but it never copies to the secondary array. 

I have attached the screenshot of the configuration as it stands but is not working.

Any help would be appreciated.

Z

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Array List Copy To not working
« Reply #1 on: May 30, 2017, 04:16:58 AM »
Hi,

 it's simply because "count" is 0, so it copies 0 elements from source to target.

 set "count" to "none" by clicking ont he select variable button, then the action will copy everything starting from the start index.

the action by default sets both start index and count to none, so you could reset the action as well.

 Bye,

 Jean

Zanderfax

  • Playmaker Newbie
  • *
  • Posts: 14
Re: Array List Copy To not working
« Reply #2 on: June 01, 2017, 03:47:00 PM »
Thanks Jean!!