Im not sure the best way to do this.
basically i’d like to have an editor where a GUI element has a list of objects you can spawn
but if i decide later to add a new object you can spawn i dont want it to be a huge pain.
So what i’d like to do is basically have code where i have a gameobject list variable
and add every object in a folder.
That way later when i want to add a new object I just drop the object into a prefab spawn folder and the code automagically adds it to the list of spawnable objects in the GUI.
So basically when i write
how can i make x iterate through objects in a folder.
is there some kind of way to do
foreach (gameobject in “directory”)