Is it possible in JavaScript to reference a texture that’s residing in the project folder heirarchy somewhere? I’m wanting to dynamically populate a built-in array with texture using script.
Yes, but you need to use the Resources class and Folder
Create a folder at the root of the project called Resources, and then you can use Resources.Load with the filepath relative to Resources.
Thanks!
Is it not possible to organize assets into subfolders within the Resources folder when using Resources.Load()?
I see in the docs that LoadAll aparently works with subfolders, but upon experimentation Load() only works at the root level of Resources. Is that correct?
it is, just access them with the right path.
Geez, I’m such a tool sometimes. I had a " " character at the very front of the name of one of the subfolders, and didn’t realize it because in the editor it’s not that obvious.
Thanks all.