- Home /
Can You Play External MP3's from a script?
Please, Just dont answer yes or no, actually help.
Im not going to use the WWW function, I need to grab a file off of my desktop using my custom file manager (Already Set Up). When I grab the file, In unity, How can I play it, since it is a external source Im pretty sure I just cant do -
Audio.PlayOneShot(myPath)
Thanks.
I believe you have to import assets into Unity before you can use them.
Answer by kmeboe · Sep 07, 2012 at 12:57 AM
Seems like the solution would be to use WWW by appending "file://" to the front of your path, and then following the answer in this thread: http://answers.unity3d.com/questions/148221/loading-a-new-audioclip-during-runtime.html. I know you said that you have your own custom file manager, but what's to stop you from using WWW after your manager provides the path?
Your answer

Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Same GUI script showing up in different places 0 Answers
C# Movement Script 0 Answers