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

Audio Clip won't play on iPad when loaded from Resources folder

$
0
0
Hello everyone, Again some strange behavior that a method works fine on a platform while it doesn't on other. I had references to my audio clips and relized that it effects Ram usage (please tell me if I am wrong). So for now instead of having reference for the clip, I have reference for its name and playing audio like this: audioPlayer.PlayOneShot(Resources.Load(currentImot.name) as AudioClip); To summarize, everything working great on the editor and Android devices as well, and as I built to my iPad, can't hear the audio. However same audio clip is playing on the iPad, whenever I have attached to an audioSource on a prefab and I instantiate the prefab (play on awake checked), and doesn't play when loaded from Resources folder. So even its not from audio settings, and what the reason might be??

Viewing all articles
Browse latest Browse all 4709

Trending Articles



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