audiolistener 音频侦听器

2015-1-3 04:07| 发布者: 杨炎| 查看: 2434| 评论: 0|原作者: 蛮牛|来自: yzc88亚洲城脚本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?

物体是否被隐藏、保存在场景中或被用户修改?

相关阅读

文章点评
相关文章