May 2018
Intermediate to advanced
470 pages
13h 54m
English
When the user interacts with the 3D objects, we will play sounds based on whether the object can be collected or not, and also whether the game has been completed. The AudioModule in Native Modules allows adding sound to the VR world as background environmental audio, one-off sound effects, and spatialized audio. In our game, we will use environmental audio and one-off sound effects.
AudioModule.playEnvironmental({ source: asset('happy-bot.mp3'), loop: true})
Read now
Unlock full access