Scripting

Search The Documentation:

  1. Home
  2. Docs
  3. Scripting
  4. Audio
  5. loadAudio

loadAudio

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)

Compatible Audio Formats

Tags
Was this article helpful to you? Yes No

How can we help?