How would I call upon objects in the Project menu in an array?
This is all I got. :lol:
var ArrayTest : new Array()
How would I call upon objects in the Project menu in an array?
This is all I got. :lol:
var ArrayTest : new Array()
I’m not sure what you mean by the Project menu. Do you mean the assets in the project panel of the editor window?
Yes thats exactly what I mean. 8)
You’ll probably be interested in the Resources class.
They need to be in the Resources folder, but it is the only way I could find to get an asset by name and not reference (which must already be in the scene).
You can use LoadAll for a folder, or just Load for individual files.
You can also use the WWW class for textures(png, jpg) and OGG files if you want coroutine based loading for smoother loading.