Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: ToxicFrog on March 09, 2015, 05:27:45 PM

Title: Arraymaker: Array List Copy To not working
Post 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!
Title: Re: Arraymaker: Array List Copy To not working
Post by: jeanfabre on March 10, 2015, 02:16:54 AM
Hi,

 What version of Unity are you using? I'll run some tests then.

 Bye,

 Jean
Title: Re: Arraymaker: Array List Copy To not working
Post by: ToxicFrog on March 12, 2015, 12:05:34 PM
Hi Jean,

I'm using 4.6.1.

Thanks for your help!
Title: Re: Arraymaker: Array List Copy To not working
Post by: jeanfabre on March 16, 2015, 02:26:04 AM
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