playMaker

Author Topic: Load all prefab[SOLVED]  (Read 1778 times)

LeDisciple

  • Playmaker Newbie
  • *
  • Posts: 35
Load all prefab[SOLVED]
« 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...
« Last Edit: February 27, 2019, 01:43:56 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Load all prefab[SOLVED]
« Reply #1 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

LeDisciple

  • Playmaker Newbie
  • *
  • Posts: 35
Re: Load all prefab
« Reply #2 on: February 26, 2019, 06:17:31 PM »
Thanks, I thought that the path of the "Resources" folder was any folder...  ::)

Christoph

  • Beta Group
  • Sr. Member
  • *
  • Posts: 254
Re: Load all prefab[SOLVED]
« Reply #3 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. :)
« Last Edit: April 24, 2021, 04:01:07 PM by Christoph »