playMaker

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

midgear

  • Playmaker Newbie
  • *
  • Posts: 13
  • Yeah How bout that?
    • View Profile
Array List add all the prefab Help [SOLVED]
« on: October 12, 2019, 03: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, 05:56:51 PM by midgear »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 4556
    • View Profile
    • jinxtergames
Re: Array List add all the prefab Help
« Reply #1 on: October 12, 2019, 04: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?
    • View Profile
Re: Array List add all the prefab Help
« Reply #2 on: October 12, 2019, 09:13:44 AM »
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: 4556
    • View Profile
    • jinxtergames
Re: Array List add all the prefab Help
« Reply #3 on: October 12, 2019, 01: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?
    • View Profile
Re: Array List add all the prefab Help
« Reply #4 on: October 12, 2019, 05:56:21 PM »
Ah, I was being dumb that did it thank you!