Skip to content
DEV505 / Sound ManagerDOCUMENTATION

DEV505 / START HERE

Bee in pictures.

Unity screenshots of Bee, with scene states, sound graphs, and steps to try.

03 / A little buzz. Release the bee and watch it circle the player. The sound follows the bee, while the player at the center acts as the listener. Use headphones to hear its direction as well as its distance.

These are real Unity captures with the scene’s own models, camera, and controls. Select a picture to enlarge it, or open Try this in Unity below it for the steps. The graph close views explain individual parts of the full graph.

All screenshot galleries · Read how sound follows a moving object

Read the complete Bee walkthrough for controls, graph flow, and code.

Ready to fly

The bee rests on its flower. The listener is at the player in the center, so the distance readout measures from there.
Bee in Unity: ready to fly. The real scene controls and status readouts are visible.

The bee rests on its flower. The listener is at the player in the center, so the distance readout measures from there.

Try this in Unity
  1. In Unity’s Project window, open Assets/DEV505/SoundManager/Samples/03-Bee/Demo.unity. Enter Play Mode and click the Game view so it receives your keyboard input.
  2. Leave the bee resting on its flower.

The bee passes on the right

The bee is flying on the right side of the listener. The demo starts one looping buzz with a context that follows the bee Transform.
Bee in Unity: the bee passes on the right. The real scene controls and status readouts are visible.

The bee is flying on the right side of the listener. The demo starts one looping buzz with a context that follows the bee Transform.

Try this in Unity
  1. In Unity’s Project window, open Assets/DEV505/SoundManager/Samples/03-Bee/Demo.unity. Enter Play Mode and click the Game view so it receives your keyboard input.
  2. Press Space or choose Release bee.
  3. Wait for the bee to fly to the right side of the player.

The bee passes on the left

The same flight continues around the player. Following the Transform updates the sound position as the bee moves; it does not start a new buzz each frame.
Bee in Unity: the bee passes on the left. The real scene controls and status readouts are visible.

The same flight continues around the player. Following the Transform updates the sound position as the bee moves; it does not start a new buzz each frame.

Try this in Unity
  1. In Unity’s Project window, open Assets/DEV505/SoundManager/Samples/03-Bee/Demo.unity. Enter Play Mode and click the Game view so it receives your keyboard input.
  2. Press Space or choose Release bee.
  3. Let the bee continue around the player until it reaches the left side.

A graph connects blocks called nodes to control a sound. The Inspector holds the event’s playback settings. The pictures below show the saved graph and settings; a full graph is an overview, so use the close views to read smaller fields.

One looping buzz

On Start begins the looping bee clip. WingSpeed controls its playback speed. The moving position comes from the play context supplied by the demo script.
Bee in Unity: one buzz with a changing speed. The graph nodes and their connections are visible.

On Start begins the looping bee clip. WingSpeed controls its playback speed. The moving position comes from the play context supplied by the demo script.

Try this in Unity
  1. Exit Play Mode.
  2. In Unity’s Project window, double-click Assets/DEV505/SoundManager/Samples/03-Bee/Bee.soundgraph.
  3. Use the mouse wheel to zoom and drag the graph background to bring the relevant nodes into view.
  4. Frame the entire graph for an overview. Use the close views on this page for small labels.

Make the buzz a 3D sound

Spatial blend is 1, with linear distance falloff from 0.8 to 4 world units and Doppler set to 0.3. These are the event settings used by the moving bee.
Bee in Unity: make the buzz a 3D sound. The saved event values are visible in the Inspector.

Spatial blend is 1, with linear distance falloff from 0.8 to 4 world units and Doppler set to 0.3. These are the event settings used by the moving bee.

Try this in Unity
  1. Exit Play Mode.
  2. In Unity’s Project window, select Assets/DEV505/SoundManager/Samples/03-Bee/Bee.soundgraph.
  3. In the Inspector, expand Spatial audio. Read the values shown here; no changes are needed.
DEV505 / SOUND LABChecked with Unity 6000.6.0f1 · Revision 746a1cc