C# 클래스 HoloToolkit.Unity.ActiveEvent

Currently active AudioEvents along with their AudioSource components for instance limiting events
상속: IDisposable
파일 보기 프로젝트 열기: Microsoft/HoloToolkit-Unity 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
SpatialRolloff UnityEngine.AnimationCurve
activeTime float
altVolDest float
audioEvent AudioEvent
cancelEvent bool
currentFade float
isActiveTimeComplete bool
isStoppable bool
playingAlt bool
volDest float

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
SetSourceProperties ( ) : void

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

메소드 상세

ActiveEvent() 공개 메소드

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
리턴 System

CreateFlatSpatialRolloffCurve() 공개 정적인 메소드

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

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

SetPitch() 공개 메소드

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).
리턴 void

프로퍼티 상세

SpatialRolloff 공개적으로 정적으로 프로퍼티

public static AnimationCurve,UnityEngine SpatialRolloff
리턴 UnityEngine.AnimationCurve

activeTime 공개적으로 프로퍼티

public float activeTime
리턴 float

altVolDest 공개적으로 프로퍼티

public float altVolDest
리턴 float

audioEvent 공개적으로 프로퍼티

public AudioEvent audioEvent
리턴 AudioEvent

cancelEvent 공개적으로 프로퍼티

public bool cancelEvent
리턴 bool

currentFade 공개적으로 프로퍼티

public float currentFade
리턴 float

isActiveTimeComplete 공개적으로 프로퍼티

public bool isActiveTimeComplete
리턴 bool

isStoppable 공개적으로 프로퍼티

public bool isStoppable
리턴 bool

playingAlt 공개적으로 프로퍼티

public bool playingAlt
리턴 bool

volDest 공개적으로 프로퍼티

public float volDest
리턴 float