C# Class HoloToolkit.Unity.ActiveEvent

Currently active AudioEvents along with their AudioSource components for instance limiting events
Inheritance: IDisposable
Afficher le fichier Open project: Microsoft/HoloToolkit-Unity Class Usage Examples

Méthodes publiques

Свойство Type Description
SpatialRolloff UnityEngine.AnimationCurve
activeTime float
altVolDest float
audioEvent AudioEvent
cancelEvent bool
currentFade float
isActiveTimeComplete bool
isStoppable bool
playingAlt bool
volDest float

Méthodes publiques

Méthode Description
ActiveEvent ( AudioEvent audioEvent, GameObject emitter, AudioSource primarySource, AudioSource secondarySource, string messageOnAudioEnd = null ) : System
CreateFlatSpatialRolloffCurve ( ) : void

Creates a flat animation curve to negate Unity's distance attenuation when using Spatial Sound

Dispose ( ) : void
SetPitch ( float newPitch ) : void

Sets the pitch value for the primary source.

Private Methods

Méthode Description
SetSourceProperties ( ) : void

Set the volume, spatialization, etc., on our AudioSources to match the settings on the event to play.

Method Details

ActiveEvent() public méthode

public ActiveEvent ( AudioEvent audioEvent, GameObject emitter, AudioSource primarySource, AudioSource secondarySource, string messageOnAudioEnd = null ) : System
audioEvent AudioEvent
emitter UnityEngine.GameObject
primarySource UnityEngine.AudioSource
secondarySource UnityEngine.AudioSource
messageOnAudioEnd string
Résultat System

CreateFlatSpatialRolloffCurve() public static méthode

Creates a flat animation curve to negate Unity's distance attenuation when using Spatial Sound
public static CreateFlatSpatialRolloffCurve ( ) : void
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

SetPitch() public méthode

Sets the pitch value for the primary source.
public SetPitch ( float newPitch ) : void
newPitch float The value to set the pitch, between 0 (exclusive) and 3 (inclusive).
Résultat void

Property Details

SpatialRolloff public_oe static_oe property

public static AnimationCurve,UnityEngine SpatialRolloff
Résultat UnityEngine.AnimationCurve

activeTime public_oe property

public float activeTime
Résultat float

altVolDest public_oe property

public float altVolDest
Résultat float

audioEvent public_oe property

public AudioEvent audioEvent
Résultat AudioEvent

cancelEvent public_oe property

public bool cancelEvent
Résultat bool

currentFade public_oe property

public float currentFade
Résultat float

isActiveTimeComplete public_oe property

public bool isActiveTimeComplete
Résultat bool

isStoppable public_oe property

public bool isStoppable
Résultat bool

playingAlt public_oe property

public bool playingAlt
Résultat bool

volDest public_oe property

public float volDest
Résultat float