Public Member Functions

AudioClip GetClip ()
 
float GetClipLength (int idx)
 
int PlaySound (float delaySecs=0.0f)
 
int PlaySoundAt (Vector3 pos, float delaySecs=0.0f, float volume=1.0f, float pitchMultiplier=1.0f)
 
void SetOnFinished (System.Action onFinished)
 
void SetOnFinished (System.Action< object > onFinished, object obj)
 
bool StopSound ()
 
void AttachToParent (Transform parent)
 
void DetachFromParent ()
 

Public Attributes

string soundFXName = string.Empty
 

Properties

SoundFX soundFX [get]
 
string name [get, set]
 
int Length [get]
 
bool IsValid [get]
 

Member Function Documentation

◆ AttachToParent()

void OVR.SoundFXRef.AttachToParent ( Transform  parent)

◆ DetachFromParent()

void OVR.SoundFXRef.DetachFromParent ( )

◆ GetClip()

AudioClip OVR.SoundFXRef.GetClip ( )

◆ GetClipLength()

float OVR.SoundFXRef.GetClipLength ( int  idx)

◆ PlaySound()

int OVR.SoundFXRef.PlaySound ( float  delaySecs = 0.0f)

◆ PlaySoundAt()

int OVR.SoundFXRef.PlaySoundAt ( Vector3  pos,
float  delaySecs = 0.0f,
float  volume = 1.0f,
float  pitchMultiplier = 1.0f 
)

◆ SetOnFinished() [1/2]

void OVR.SoundFXRef.SetOnFinished ( System.Action  onFinished)

◆ SetOnFinished() [2/2]

void OVR.SoundFXRef.SetOnFinished ( System.Action< object >  onFinished,
object  obj 
)

◆ StopSound()

bool OVR.SoundFXRef.StopSound ( )

Member Data Documentation

◆ soundFXName

string OVR.SoundFXRef.soundFXName = string.Empty

Property Documentation

◆ IsValid

bool OVR.SoundFXRef.IsValid
get

◆ Length

int OVR.SoundFXRef.Length
get

◆ name

string OVR.SoundFXRef.name
getset

◆ soundFX

SoundFX OVR.SoundFXRef.soundFX
get

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