playMaker

Author Topic: Array List add all the prefab Help [SOLVED]  (Read 1484 times)

midgear

  • Playmaker Newbie
  • *
  • Posts: 13
  • Yeah How bout that?
Array List add all the prefab Help [SOLVED]
« on: October 12, 2019, 06:52:55 AM »
I'm having problems with "ArrayList - add all the prefab" I attached some images of what I have on my Game Object. If someone could tell me what I'm doing wrong that would be extremely helpful.
« Last Edit: October 12, 2019, 08:56:51 PM by midgear »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Array List add all the prefab Help
« Reply #1 on: October 12, 2019, 07:42:43 AM »
Hi.
Try placing the prefabs in a subfolder inside Resources.

For example Resources/PrefabList then on Asset path place the text 'PrefabList'
if you have for example Resources/Player/PrefabList then on Asset path place the text 'Player/PrefabList'

On Play Maker Array List Proxy (script)
you need to place a reference.
The Reference name should match with the action.

So on the action you have 'ResourcesArray'
Place the same name in the Reference on the Play Maker Array List Proxy (script) component.

midgear

  • Playmaker Newbie
  • *
  • Posts: 13
  • Yeah How bout that?
Re: Array List add all the prefab Help
« Reply #2 on: October 12, 2019, 12:13:44 PM »
So progress was made, I did what you said and the prefabs from the resource folder are showing up on the "Play Maker Array List Proxy (script)" on the game object, but not on the array named "ResourcesArray" in the playmaker FSM.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Array List add all the prefab Help
« Reply #3 on: October 12, 2019, 04:48:09 PM »
Hi.
'Array' and 'Array List' are 2 different things.
you can access the array list proxy, (which now hold the objects)
by using array list actions.

midgear

  • Playmaker Newbie
  • *
  • Posts: 13
  • Yeah How bout that?
Re: Array List add all the prefab Help
« Reply #4 on: October 12, 2019, 08:56:21 PM »
Ah, I was being dumb that did it thank you!