Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: LeDisciple on February 25, 2019, 09:12:12 PM

Title: Load all prefab[SOLVED]
Post by: LeDisciple on February 25, 2019, 09:12:12 PM
Hi,

I don't understand how to figure the "ArrayList add all the prefab" script from ecosystem... I try to load all my images(converted to prefab of course) from a folder to an arraylist but without success... I don't want to use a prefilled data like I do with my other project...
Title: Re: Load all prefab[SOLVED]
Post by: jeanfabre on February 26, 2019, 02:37:27 AM
Hi,

 It's because you need to have your assets in a Resources folder, it's a special kind of folder inside your Unity Assets.

https://docs.unity3d.com/Manual/LoadingResourcesatRuntime.html

Bye,

 Jean
Title: Re: Load all prefab
Post by: LeDisciple on February 26, 2019, 06:17:31 PM
Thanks, I thought that the path of the "Resources" folder was any folder...  ::)
Title: Re: Load all prefab[SOLVED]
Post by: Christoph on April 23, 2021, 04:25:15 PM
Does this only work with Array Maker or is there something similar but for default playmaker arrays?

Edit: I think this is the equivalent to Resources Load All which uses default arrays. :)