Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started 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.
-
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.
-
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.
-
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.
-
Ah, I was being dumb that did it thank you!