C# 클래스 AudioPlayer

상속: MonoBehaviour
파일 보기 프로젝트 열기: LilTsubaki/Les-fragments-d-Erule 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
_audio UnityEngine.AudioSource
_channelName string
_fadeIn bool
_fadeOut bool
_loopClips bool
_maxPitch float
_minPitch float
_panoramicPosition float
_power float
_randPitch bool

공개 메소드들

메소드 설명
FadeIn ( ) : void

Enables the fading in behaviour in Update and disables the fading out.

FadeOut ( ) : void

Enables the fading out behaviour in Update and disables the fading in.

GoToPanoramicPosition ( float newPos ) : void
Looping ( int selfId, string channel, bool randPitch, AudioManager, space, Vector3 pos, float distMin, float distMax ) : void
Start ( ) : void
StopLooping ( bool fade ) : void
Update ( ) : void

메소드 상세

FadeIn() 공개 메소드

Enables the fading in behaviour in Update and disables the fading out.
public FadeIn ( ) : void
리턴 void

FadeOut() 공개 메소드

Enables the fading out behaviour in Update and disables the fading in.
public FadeOut ( ) : void
리턴 void

GoToPanoramicPosition() 공개 메소드

public GoToPanoramicPosition ( float newPos ) : void
newPos float
리턴 void

Looping() 공개 메소드

public Looping ( int selfId, string channel, bool randPitch, AudioManager, space, Vector3 pos, float distMin, float distMax ) : void
selfId int
channel string
randPitch bool
space AudioManager,
pos Vector3
distMin float
distMax float
리턴 void

Start() 공개 메소드

public Start ( ) : void
리턴 void

StopLooping() 공개 메소드

public StopLooping ( bool fade ) : void
fade bool
리턴 void

Update() 공개 메소드

public Update ( ) : void
리턴 void

프로퍼티 상세

_audio 공개적으로 프로퍼티

The AudioSource to play.
public AudioSource,UnityEngine _audio
리턴 UnityEngine.AudioSource

_channelName 공개적으로 프로퍼티

The channel of AudioData to be played looping .
public string _channelName
리턴 string

_fadeIn 공개적으로 프로퍼티

Is the sound being played in ?
public bool _fadeIn
리턴 bool

_fadeOut 공개적으로 프로퍼티

Is the sound being played out ?
public bool _fadeOut
리턴 bool

_loopClips 공개적으로 프로퍼티

Does the same clip has to be played looping ?
public bool _loopClips
리턴 bool

_maxPitch 공개적으로 프로퍼티

public float _maxPitch
리턴 float

_minPitch 공개적으로 프로퍼티

public float _minPitch
리턴 float

_panoramicPosition 공개적으로 프로퍼티

Where is the sound played ? -1 left, 1 right.
public float _panoramicPosition
리턴 float

_power 공개적으로 프로퍼티

The power of the voulme of the sound [0,1].
public float _power
리턴 float

_randPitch 공개적으로 프로퍼티

public bool _randPitch
리턴 bool