Quantcast
Channel: Questions in topic: "ios"
Viewing all articles
Browse latest Browse all 4709

IOS Load AudioClip from local

$
0
0
Hi, I use this code for iOS path: public static string GetiPhoneDocumentsPath () { string path = Application.dataPath.Substring (0, Application.dataPath.Length - 5); path = path.Substring(0, path.LastIndexOf('/')); return path + "/Documents"; } Documents folder include many .wav files. I want to play this audioClips. I try this code: string filepath = Path.Combine(GetiPhoneDocumentsPath(),SongName); AudioClip my = (AudioClip)Resources.Load(filepath, typeof(AudioClip)); audio.clip = my; audio.Play(); but didn't work :( How can I do???

Viewing all articles
Browse latest Browse all 4709

Trending Articles



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