Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: midgear on October 12, 2019, 06:52:55 AM

Title: Array List add all the prefab Help [SOLVED]
Post by: midgear 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.
Title: Re: Array List add all the prefab Help
Post by: djaydino 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.
Title: Re: Array List add all the prefab Help
Post by: midgear 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.
Title: Re: Array List add all the prefab Help
Post by: djaydino 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.
Title: Re: Array List add all the prefab Help
Post by: midgear on October 12, 2019, 08:56:21 PM
Ah, I was being dumb that did it thank you!