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.
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
Post a Comment