Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: ToxicFrog on March 09, 2015, 05:27:45 PM
-
Hello friends,
I am trying to copy the entire contents from one Array list to an Array List on another object. I cannot seem to get it to work.
Here's what I've got:
ObjectA has ArrayList called 'TempSequence', and it's a list of integers (prefill type int).
ObjectB has ArrayList called 'Sequence', and it's empty (prefill type int).
I have an action on Object A "Array List Copy To" set like this:
Array List Copy To
Set up
Game object: Use Owner
Reference: TempSequence
Result
Game Object Target: Specify Game Object
ObjectB
Reference: Sequence
Start Index: 0
Count: 5
It produces an error "ArrayListCopyTo : ArrayList undefined.
I've tried reversing it (going from ObjectB to ObjectA) in case I was setting it up wrong, but nothing seems to work.
Advice?
Thanks!
-
Hi,
What version of Unity are you using? I'll run some tests then.
Bye,
Jean
-
Hi Jean,
I'm using 4.6.1.
Thanks for your help!
-
Hi,
tested and it works.
-- are you sure you are pointing the right source and target?
-- are yousure the source is filled with entries?
-- are you sure you don't delete the entries added somehow?
Bye,
Jean