- Home /
let player import music during game?
is there any easy way (drag/drop) for the player to bring sound files in while the game runs? so I'm not looking for the Resources folder where he could drop a file. more of a kind of GUI slot where he could drop a file or browse for a file.
thx J.
Answer by AVividLight · Apr 18, 2013 at 06:45 PM
Drag/Drop isn't supported in Unity. That said, you could have the user drop music into a folder on their computer, and use WWW.GetAudioClip to play from there. Hope this helps! -Gibson
Converted to answer, because that's what it is. And it's what I linked to half an hour ago.
thx for the answers, is a browse pop up in unity GUI possible for this?
Yeah, you can make a folder browser by using System.IO
. It would probably be easiest to use System.IO.Directory.GetDirectories
.