Loading all the scriptableObject of a folder at runtime

Hello,

I’m scripting a Quest system. Those quest are generated randomly with existing objects of the world, using Quest Template as reference to know what kind of object is needed.

I’m trying to store those Quest Template, wich are simple raw data, into a ScriptableObject. My goal is to load all the existing QuestTemplate’s references in an array at the start of the game, so the game can directly work with its datas, instead of linking them manualy (wich mean, drag drop 300 Quest Template into an array if I have 300 Quest Template. :frowning: ).

How to do it?

I could generate XML files instead of using ScriptableObject, but I want to manage all of this into Unity. (Right click, create Quest Template, fill them through the inspector, etc.)

Perhaps you can help custom Editor? Unity - Scripting API: Editor

Huh, what?

I’m not speaking about custom editor, but to load multiple ScriptableObject at once at the start of my game. :confused:

McRain was answering your last sentence. For the rest of it:

That’s what I wanted. :]