playMaker

Author Topic: Get ALL Array elements and store it to variable?  (Read 714 times)

tonnynevel

  • Playmaker Newbie
  • *
  • Posts: 1
Get ALL Array elements and store it to variable?
« on: October 06, 2020, 05:02:07 AM »
Hi there,
I have GameObject with my script e.g. "Test.cs" that have array of bools e.g. "public bool[] Bools"
I create in PlayMaker new Variable called "Bools2" type: array, ArrayType: bool

How can i do this using playmaker? :

for(int i=0;i<GetComponent<Test>().Bools.lenght;i++)
{
Bools2 = GetComponent<Test>().Bools;
}

In short my question: "How to copy ALL array elements to variable ? What i should take from Action Browser?"

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Get ALL Array elements and store it to variable?
« Reply #1 on: October 06, 2020, 11:47:37 AM »
Hi.
The Playmaker API might be helpful :
https://hutonggames.fogbugz.com/default.asp?W127