|
Post by SeaAge on Jan 6, 2016 17:40:26 GMT
Hi!
I've been wondering if its possible to create a drop down list of the sound groups in custom scripts. Currently I'm using a string (DarkTonic.MasterAudio.MasterAudio.PlaySound(mC.startSound, mC.volume, mC.pitch) ) but it would be a lot easier to just have a drop down list in the inspector, instead of using simple strings which are error-prone (typos) and time consuming. So far, I couldn't find any solution.
|
|
|
Post by DarkTonic Dev on Jan 6, 2016 20:49:58 GMT
You want to decorate your public string variable with the SoundGroupAttribute. That will do it.
|
|
|
Post by SeaAge on Jan 6, 2016 21:12:39 GMT
Thanks a lot! That worked.
|
|
|
Post by DarkTonic Dev on Jan 6, 2016 21:29:01 GMT
|
|