Quantcast
Channel: Questions in topic: "webrequest"
Viewing all articles
Browse latest Browse all 387

UnityWebRequestMultimedia dosent load local file MacOS

$
0
0
I use UnityWebRequestMultimedia to load files from localDrive on this piece of code. But, on MacOS he tries to Load at localhost. How can i change this? ![alt text][1] ![alt text][2] Song.Audio audio = new Song.Audio(); FileInfo guitarFileInfo = new FileInfo(song.fileInfo.Directory.FullName + "/guitar.ogg"); if (guitarFileInfo.Exists) { using (UnityWebRequest uwr = UnityWebRequestMultimedia.GetAudioClip(guitarFileInfo.FullName, AudioType.OGGVORBIS)) { yield return uwr.SendWebRequest(); if (uwr.isNetworkError || uwr.isHttpError) { Debug.LogError(uwr.error); yield break; } yield return null; audio.guitar = DownloadHandlerAudioClip.GetContent(uwr); } } [1]: /storage/temp/130784-captura-de-tela-2019-01-08-as-215204.png [2]: /storage/temp/130783-captura-de-tela-2019-01-08-as-215232.png

Viewing all articles
Browse latest Browse all 387

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>