This document is about: FUSION 2
SWITCH TO

Feedback


Available in the Industries Circle
Circle
Fusion Industries prototyping Addons

This addons provides several classes to generate haptic and audio feedbacks.

Audio feedback

Sound

This class defines the common parameters of the sounds played in the application :

SoundManager

SoundManager can be added to a scene in order to centralize all sounds that are played in the application thanks to the public sounds list.
It provides several methods to play a sound selected by its name.
An AudioSource should be added the SoundManager in order to play the sounds if no audio source parameter is provided.

Feedback

Feedback manages the audio and haptic feedbacks for NetworkGrabbable objects. The scene must have a SoundManager.
It provides methods to :

  • start/pause/stop playing audio feedback,
  • start playing audio and haptic feeback in the same time

If the audio source is not defined or not find on the object, Feedback uses the SoundManager audio source.

Fade Audio Source

FadeAudioSource is a utility class to increase an audiosource volume from a starting point to a target volume within a given period of time.

UIAudioFeedback

UIAudioFeedback class can be used is usefull to add audio feedback if user interacts with UI elements.
It searchs for UI component on the game object (button, slider, toggle) and add listener in order to play a sound when the user clicks on it (button) or when the value changed (slider & toggle).

Demo

A demo scene can be found in Assets\Photon\FusionAddons\Feedback\Demo\Scenes\ folder.

Fusion Industries Feedback

The scene contains a very simple drum with two pads and two drumsticks. Also, a SoundManager is located under the ConnectionManager game object.
Each drum stick has the Feedback and DrumStick components.
DrumStick class is responsible for controlling which object has been touched with the drumstick and for playing haptic and audio feedback through the Feedback class.
If the object is a drum pad, then it asks the Drum to play the associated sound.

Download

This addon latest version is included into the Industries addon project

Supported topologies

  • shared mode

Changelog

  • Version 2.0.2:
    • Fix to ensure compatibility with VisionOSHelpers add-on.
    • Prevent crash in case of missing sound manager.
  • Version 2.0.1: Remove duplicate code + add UIAudioFeedback + fix debugLog
  • Version 2.0.0: Fusion 2.0 support
  • Version 1.0.2: Namespace modification
  • Version 1.0.1: Add demo scene + add namespace
  • Version 1.0.0: First release
Back to top