I have a folder full of images that I want to keep ready in a script. The Unity way to do this is to have a
MonoBehaviour with, for example, a
Sprite field, which I can populate in the editor.
Unfortunately, this also means that I have to sync my component manually with the folder's contents.
Essentially I'm looking for a way to "compile" this array at build time and avoid using the
Resources folder approach, as I would like this to be loaded before the scene is started.