- Home /
Audio Clip won't play on iPad when loaded from Resources folder
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??
Comment