Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: kepesh on July 13, 2019, 01:39:41 PM

Title: Add objects to array with script in editor (not during runtime)
Post by: kepesh on July 13, 2019, 01:39:41 PM
Hi,

Can I add items to a playmaker array without being in game mode using a custom script somehow?
I have a lot of game objects that would be slow to add during runtime which I want to add automatically to an array somehow.

Also, is the arrays in playmaker using Unity's own array system? Which is faster than an array list?

Thanks!
Title: Re: Add objects to array with script in editor (not during runtime)
Post by: djaydino on July 14, 2019, 07:47:30 AM
Hi.
Playmaker Built in arrays is using unity's array.
Array List (Array Maker) i believe uses Lists, which are more flexible than arrays.

I am actually working on an asset that will have tools for Playmaker, including auto placing objects to array's and array lists.

If you want you can get beta access, as i need some testers.

Pm me if you want to have beta access (other people that wish to join can pm me as well)
Title: Re: Add objects to array with script in editor (not during runtime)
Post by: jeanfabre on July 15, 2019, 03:21:39 AM
Hi,

 PlayMaker only runs logic during gameplay, so adding values to arrays during editing, can only be done manually, or via a editor script.


Bye,

 Jean