i am trying to add a sound to the image target but having some problem . when i start my application it starts my sound i want to start the sound when my target image is detected . i added the sound to the image target and enabled the play on awake option if i disable this option my sound doesnt play. plz reply thanks .
adding sound to a target image
As mentioned in the tutorial, you may need to adjust your 3D sound settings of your Audio Source:
- in the 3D Sounds Settings of your Audio Source, adjust the Max Distance so to make sure that the sound will be able to reach the audio listener of your ARCamera even when the distance from the Image Target is large (otherwise you may not be able to hear the sound); for example, increase the default value from 500 to 5000 (or whatever is appropriate to your specific scene setup)
- optionally, you may want to change the Volume Rolloff settings to use a Linear rolloff instead of a Logarithmic one (this is optional and up to your specific application needs)
Note that sound playback is ultimately controlled by Unity, not by Vuforia, so you may want to check the Unity documentation:
Are you sure you want to delete this message?
Are you sure you want to delete this conversation?