April 2020
Intermediate to advanced
716 pages
18h 55m
English
When the user interacts with the 3D objects in the game, 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 NativeModules allows us to add sound to the VR world as background environmental audio, one-off sound effects, and spatial audio. In our game, we will use environmental audio and one-off sound effects:
AudioModule.playEnvironmental({ source: asset('happy-bot.mp3'), ...Read now
Unlock full access