AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
HoloToolkit.Unity.ActiveEvent Class Reference

Currently active AudioEvents along with their AudioSource components for instance limiting events More...

Inheritance diagram for HoloToolkit.Unity.ActiveEvent:

Public Member Functions

 ActiveEvent (AudioEvent audioEvent, GameObject emitter, AudioSource primarySource, AudioSource secondarySource, string messageOnAudioEnd=null)
 
void SetPitch (float newPitch)
 Sets the pitch value for the primary source. More...
 
void Dispose ()
 

Static Public Member Functions

static void CreateFlatSpatialRolloffCurve ()
 Creates a flat animation curve to negate Unity's distance attenuation when using Spatial Sound More...
 

Public Attributes

AudioEvent AudioEvent = null
 
bool IsStoppable = true
 
float VolDest = 1
 
float AltVolDest = 1
 
float CurrentFade = 0
 
bool PlayingAlt = false
 
bool IsActiveTimeComplete = false
 
float ActiveTime = 0
 
bool CancelEvent = false
 

Static Public Attributes

static AnimationCurve SpatialRolloff
 

Properties

AudioSource PrimarySource [get]
 
AudioSource SecondarySource [get]
 
bool IsPlaying [get]
 
GameObject AudioEmitter [get]
 
string MessageOnAudioEnd [get]
 

Detailed Description

Currently active AudioEvents along with their AudioSource components for instance limiting events

Definition at line 12 of file ActiveEvent.cs.

Constructor & Destructor Documentation

§ ActiveEvent()

HoloToolkit.Unity.ActiveEvent.ActiveEvent ( AudioEvent  audioEvent,
GameObject  emitter,
AudioSource  primarySource,
AudioSource  secondarySource,
string  messageOnAudioEnd = null 
)

Definition at line 80 of file ActiveEvent.cs.

Member Function Documentation

§ CreateFlatSpatialRolloffCurve()

static void HoloToolkit.Unity.ActiveEvent.CreateFlatSpatialRolloffCurve ( )
static

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

Definition at line 251 of file ActiveEvent.cs.

§ Dispose()

void HoloToolkit.Unity.ActiveEvent.Dispose ( )

Definition at line 233 of file ActiveEvent.cs.

§ SetPitch()

void HoloToolkit.Unity.ActiveEvent.SetPitch ( float  newPitch)

Sets the pitch value for the primary source.

Parameters
newPitchThe value to set the pitch, between 0 (exclusive) and 3 (inclusive).

Definition at line 222 of file ActiveEvent.cs.

Member Data Documentation

§ ActiveTime

float HoloToolkit.Unity.ActiveEvent.ActiveTime = 0

Definition at line 77 of file ActiveEvent.cs.

§ AltVolDest

float HoloToolkit.Unity.ActiveEvent.AltVolDest = 1

Definition at line 73 of file ActiveEvent.cs.

§ AudioEvent

AudioEvent HoloToolkit.Unity.ActiveEvent.AudioEvent = null

Definition at line 70 of file ActiveEvent.cs.

§ CancelEvent

bool HoloToolkit.Unity.ActiveEvent.CancelEvent = false

Definition at line 78 of file ActiveEvent.cs.

§ CurrentFade

float HoloToolkit.Unity.ActiveEvent.CurrentFade = 0

Definition at line 74 of file ActiveEvent.cs.

§ IsActiveTimeComplete

bool HoloToolkit.Unity.ActiveEvent.IsActiveTimeComplete = false

Definition at line 76 of file ActiveEvent.cs.

§ IsStoppable

bool HoloToolkit.Unity.ActiveEvent.IsStoppable = true

Definition at line 71 of file ActiveEvent.cs.

§ PlayingAlt

bool HoloToolkit.Unity.ActiveEvent.PlayingAlt = false

Definition at line 75 of file ActiveEvent.cs.

§ SpatialRolloff

AnimationCurve HoloToolkit.Unity.ActiveEvent.SpatialRolloff
static

Definition at line 90 of file ActiveEvent.cs.

§ VolDest

float HoloToolkit.Unity.ActiveEvent.VolDest = 1

Definition at line 72 of file ActiveEvent.cs.

Property Documentation

§ AudioEmitter

GameObject HoloToolkit.Unity.ActiveEvent.AudioEmitter
get

Definition at line 59 of file ActiveEvent.cs.

§ IsPlaying

bool HoloToolkit.Unity.ActiveEvent.IsPlaying
get

Definition at line 49 of file ActiveEvent.cs.

§ MessageOnAudioEnd

string HoloToolkit.Unity.ActiveEvent.MessageOnAudioEnd
get

Definition at line 65 of file ActiveEvent.cs.

§ PrimarySource

AudioSource HoloToolkit.Unity.ActiveEvent.PrimarySource
get

Definition at line 16 of file ActiveEvent.cs.

§ SecondarySource

AudioSource HoloToolkit.Unity.ActiveEvent.SecondarySource
get

Definition at line 33 of file ActiveEvent.cs.


The documentation for this class was generated from the following file: