Please Select Your Location
Australia
Österreich
België
Canada
Canada - Français
中国
Česká republika
Denmark
Deutschland
France
HongKong
Iceland
Ireland
Italia
日本
Korea
Latvija
Lietuva
Lëtzebuerg
Malta
المملكة العربية السعودية (Arabic)
Nederland
New Zealand
Norge
Polska
Portugal
Russia
Saudi Arabia
Southeast Asia
España
Suisse
Suomi
Sverige
台灣
Ukraine
United Kingdom
United States
Please Select Your Location
België
Česká republika
Denmark
Iceland
Ireland
Italia
Latvija
Lietuva
Lëtzebuerg
Malta
Nederland
Norge
Polska
Portugal
España
Suisse
Suomi
Sverige

Adding ambient audio

The VIVEPORT Scene SDK provides the component Vive Object Audio Ambience (Script) to add ambient sound to your scene. We recommend that each instance of the component be used for similar sounds, such as bird song used in one object, and then using other ambience such as wind or creaking trees, in a separate components.

To add the ambient audio:

  1. In Unity, create an empty GameObject in the hierarchy by clicking Create > Create Empty .
  2. Select your new object, and then rename it Ambient Audio in the Inspector window.
  3. Click Add Component , and then add the following:
    • Audio Source
    • Preview Audio Context (Script)
    • Vive Object Audio Ambience (Script)
  4. In Vive Object Audio Ambience (Script), click Ambient sounds to expand. Type the number of sound files you’ll add into the Size box. You can change this number at any time.
  5. Drag your audio files to the boxes labelled Element __ .
  6. You can adjust any of the following settings:
    • Time minimum – minimum amount of time that will pass before a sound will trigger.
    • Time maximum – maximum amount of time that will pass before a sound will trigger.
    • Sound volume – Sets the audio source volume between 0 and 1. See the tips in Adding audio for recommended values.
    • Sound distance – Determines the maximum range of a sound and attenuates the minimum distance.