playMaker

Author Topic: Add objects to array with script in editor (not during runtime)  (Read 983 times)

kepesh

  • Playmaker Newbie
  • *
  • Posts: 5
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!

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Add objects to array with script in editor (not during runtime)
« Reply #1 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)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Add objects to array with script in editor (not during runtime)
« Reply #2 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