May 2018
Intermediate to advanced
470 pages
13h 54m
English
The asset() functionality in React 360 allows us to retrieve external resource files, such as audio and image files. We will place the sound audio files for the game in the static_assets folder, to be retrieved using asset() for each audio added to the game:
AudioModule.playOneShot({ source: asset('collect.mp3'),})
Read now
Unlock full access