|
Post by juicybooty on May 27, 2014 2:53:49 GMT
Hello,
I have spent several hours trying to figure this out and I could use some help. I have gotten playlists to start and play additional tracks and loop. But I have a scene where there is a battle theme playlist, win theme playlist and a lose theme playlist. I have checked the documentation and when I reference MasterAudio.anycommandhere; The Unity error log says "Unknown Identifier 'MasterAudio'. I would like to make certain playlists start and stop when certain events occur like fighting/winning/losing. I would appreciate any assistance. Thank you.
Some notes: I have just downloaded the latest version today and I am coding everything in javascript. Do I need to move the MasterAudio folders or anything to make this work?
|
|
|
Post by DarkTonic Dev on May 27, 2014 4:28:44 GMT
|
|
|
Post by juicybooty on May 27, 2014 19:44:01 GMT
Hello,
I tried putting the entire DarkTonic folder into "Standard Assets" and that did not work. I eventually moved the "Scripts" folder that from inside the DarkTonic folder to the "Plugins" folder (must be created, it is a top level folder by itself) and then everything worked for me. Maybe you could update that in the documentation for other javascript users like me :]
Warm Regards, Jesse
|
|
|
Post by DarkTonic Dev on May 27, 2014 22:23:44 GMT
Will do, thank you for the info! Actually I think we'll change the root folder to use Plugins.
edit: False alarm, actually we're not going to move the plugin into the "Plugins" folder. It causes other problems with DF-GUI for example when you install the optional package for it. I would like to move it, but it's causes other problems so it's not going to happen.
|
|
|
Post by juicybooty on May 28, 2014 7:00:23 GMT
Hello,
I think the plugins folder works vice versa depending on what you're coding. But I'm not 100% sure. So your C# asset/scripts goes into the plugins folder for my javascript project. But if you were coding a C# project then you would put your javascript scripts (if any) in the plugins folder.
Best of luck on your projects. I'm really enjoying the audio system you created.
Warm Regards, Jesse
|
|
|
Post by DarkTonic Dev on May 28, 2014 7:11:56 GMT
Ok, thanks for the info and good luck with your projects as well! Do share when you have something at a stage you feel like showing off.
|
|