unity3d - Assigning multiple assets to multiple variables on inspector -


is there way assign multiple assets multiple variables on inspector???

my case this, have 5 objects, objects have script wich have around 1200 variables used play sfxs. when unity compile script have manually drag , drop sfx assets variable on inspector, or go inspector, scrol variable, click dot , select sfx file window.

enter image description here

is there way speed up?

you should create public list of audio sources appear in inspector. lock inspector clicking in right top. select files project , drag on list. files added list. if want specific file can find file name example:

audiosource getaudiosource(string sourcename) { return audiosourcelist.find(item => item.name == sourcename); } 

Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -