[펌] Download and save .ogg - Files
Unity3D/Script / 2017. 2. 15. 16:23
var fileStream : FileStream;
//creating a folder for the Files
var pathToAudioData : String = "ThePathWithFolderName";
if (!Directory.Exists (pathToAudioData)){
Directory.CreateDirectory (pathToAudioData);
}
var url: String = "http://www.TheURL.ch";
var request : WWW = new WWW (url);
yield request;
File.WriteAllBytes(pathToAudioData+"/"+"xy.ogg", request.bytes);
[출처] http://answers.unity3d.com/questions/703879/download-and-save-ogg-files.html
반응형
'Unity3D > Script' 카테고리의 다른 글
Unity3D MonoBehaviour Lifecycle(흐름도) (0) | 2017.12.20 |
---|---|
[펌] Unity BigInteger (0) | 2017.04.26 |
[펌] StreamingAssets 폴더 지정하기 (0) | 2016.11.10 |
Invert ParticleEffect Velocity (0) | 2016.11.09 |
[펌] Parallax Scrolling (0) | 2016.10.27 |