C# Class HoloToolkit.Unity.AudioOccluder

Class that implements IAudioInfluencer to provide an occlusion effect.
Inheritance: UnityEngine.MonoBehaviour, IAudioInfluencer
Afficher le fichier Open project: Microsoft/HoloToolkit-Unity

Méthodes publiques

Méthode Description
ApplyEffect ( GameObject emitter, AudioSource audioSource ) : void

Applies the audio effect.

RemoveEffect ( GameObject emitter, AudioSource audioSource ) : void

Removes the previously applied audio effect.

Private Methods

Méthode Description
Update ( ) : void

Method Details

ApplyEffect() public méthode

Applies the audio effect.
public ApplyEffect ( GameObject emitter, AudioSource audioSource ) : void
emitter UnityEngine.GameObject The GameObject on which the effect is to be applied.
audioSource UnityEngine.AudioSource The AudioSource that will be impacted by the effect.
Résultat void

RemoveEffect() public méthode

Removes the previously applied audio effect.
public RemoveEffect ( GameObject emitter, AudioSource audioSource ) : void
emitter UnityEngine.GameObject The GameObject from which the effect is to be removed.
audioSource UnityEngine.AudioSource The AudioSource that will be impacted by the effect.
Résultat void