Inspector field: All prefabs in folder to an Array
Hi, I'm doing an Editor tool.
User has to chose a number of prefabs that will 'be fired' by Unity one by one when user press Play.
I would like to make it easy for the user to select all these prefabs.
User would already have all the prefabs in a folder in Project View.
So, instead of asking the user to Say how long the array is and then drag drop each and every one I'd like the user to just be able to point at a directory via Inspector, and then let the system populate the array of Prefabs.
I think there MUST be an easy way to do this trivial task, but I cannot see it?! Thanks for any input :)
Your answer
![](https://koobas.hobune.stream/wayback/20220612084652im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Unity Editor - Group Public GameObjects 0 Answers
How to save a two-dimensional array, as part of the variable inspector? 0 Answers
Unable to create UI objects in Unity project 2 Answers
How do I use EditorGUILayout.EnumPopup with an enum with 'holes' in a custom inspector. 3 Answers
Is it possible to customize how a variable of a certain type would look in the inspector? 1 Answer