Platform Compatibility
PC | Mac OSX | Oculus Quest |
---|---|---|
X | X | X |
Load audio clip from StreamingAssets folder or the web
Parameters:
- name
- A string pointing to the local or web file
- playOnLoad Optional
- A boolean of whether to play on load or not
Example:
1 | obj.loadAudio("myLevel/my_sound.wav", true) |