找回密碼
 注冊帳號

掃一掃,訪問微社區

audiolistener 音頻偵聽器

2015-1-3 04:07| 發布者: 楊炎| 查看: 2603| 評論: 0|原作者: 蠻牛|來自: unity3d腳本manual

摘要: audiolistener 音頻偵聽器inherits frombehaviourrepresentation of a listener in 3d space.表示三維空間的一個偵聽器。this class implements a microphone-like device. it records the sounds around it and pla ...

audiolistener 音頻偵聽器

inherits frombehaviour

representation of a listener in 3d space.

表示三維空間的一個偵聽器。

this class implements a microphone-like device. it records the sounds around it and plays that through the player's speakers. you can only have one listener in a scene.

這個類實現像麥克風一樣的設備。它記錄周圍的聲音并通過玩家的揚聲器播放。在場景中只能有一個偵聽器。

參考:audiosource

variables變量

velocityupdatemode

this lets you set whether the audio listener should be updated in the fixed or dynamic update.

可讓你設置audio listener是否應該用固定或動態更新。

class variables類變量

volume

controls the game sound volume.

控制游戲聲音的音量。

pause

the paused state of the audio. if set to true, the listener will not generate sound.

音頻的暫停狀態。如果設置為true,偵聽器將不產生聲音。

class functions類函數

getoutputdata

returns a block of the listener (master)'s output data

返回該偵聽器的輸出數據塊。

getspectrumdata

returns a block of the listener (master)'s spectrum data

返回偵聽器的聲譜數據塊。

inherited members繼承成員

inherited variables繼承變量

enabled

enabled behaviours are updated, disabled behaviours are not.

啟用行為被更新,禁用行為不更新。

transform

thetransformattached to thisgameobject(null if there is none attached).

transform附加到gameobject(游戲物體)(如無附加則為空)。

rigidbody

therigidbodyattached to thisgameobject(null if there is none attached).

rigidbody附加到gameobject(游戲物體)(如無附加則為空)。

camera

thecameraattached to thisgameobject(null if there is none attached).

camera附加到gameobject(游戲物體)(如無附加則為空)。

light

thelightattached to thisgameobject(null if there is none attached).

light附加到gameobject(游戲物體)(如無附加則為空)。

animation

theanimationattached to thisgameobject(null if there is none attached).

animation附加到gameobject(游戲物體)(如無附加則為空)。

constantforce

theconstantforceattached to thisgameobject(null if there is none attached).

constantforce附加到gameobject(游戲物體)(如無附加則為空)。

renderer

therendererattached to thisgameobject(null if there is none attached).

renderer附加到gameobject(游戲物體)(如無附加則為空)。

audio

theaudiosourceattached to thisgameobject(null if there is none attached).

audiosource附加到gameobject(游戲物體)(如無附加則為空)。

guitext

theguitextattached to thisgameobject(null if there is none attached).

guitext附加到gameobject(游戲物體)(如無附加則為空)。

networkview

thenetworkviewattached to thisgameobject(read only). (null if there is none attached)

networkview附加到gameobject(游戲物體)(只讀)(如無附加則為空)。

guitexture

theguitextureattached to thisgameobject(read only). (null if there is none attached)

guitexture附加到gameobject(游戲物體)(只讀)(如無附加則為空)。

collider

thecolliderattached to thisgameobject(null if there is none attached).

collider附加到gameobject(游戲物體)(如無附加則為空)。

hingejoint

thehingejointattached to thisgameobject(null if there is none attached).

hingejoint附加到gameobject(游戲物體)(如無附加則為空)。

particleemitter

theparticleemitterattached to thisgameobject(null if there is none attached).

particleemitter附加到gameobject(游戲物體)(如無附加則為空)。

gameobject

the game object this component is attached to. a component is always attached to a game object.

組件附加的游戲物體。一個組件總是被附加到一個游戲物體。

tag

the tag of this game object.

游戲物體的標簽。

name

the name of the object. //物體的名字

hideflags

should the object be hidden, saved with the scene or modifiable by the user?

物體是否被隱藏、保存在場景中或被用戶修改?

相關閱讀

文章點評
相關文章
女校游泳队彩金