找回密码
 注册帐号

扫一扫,访问微社区

audiolistener.velocityupdatemode 速度更新模式

2015-1-3 04:27| 发布者: 杨炎| 查看: 2050| 评论: 0|原作者: 蛮牛|来自: unity3d脚本manual

摘要: audiolistener.velocityupdatemode 速度更新模式varvelocityupdatemode:audiovelocityupdatemodedescription描述this lets you set whether the audio listener should be updated in the fixed or dynamic update. ...

audiolistener.velocityupdatemode 速度更新模式

varvelocityupdatemode:audiovelocityupdatemode

description描述

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

可让你设置audio listener是否应该用固定或动态更新。

make sure this is set to update in the same update loop as the audio listener is moved in if you are experiencing problems with doppler effect simulation. the default setting will automatically set the listener to be updated in the fixed update loop if it is attached to a rigidbody, and dynamic otherwise.

如果你遇到了多普勒效应模拟问题,作为audio listener移动,请确保这个设置在相同更新循环内。如果它被附加到一个刚体,默认设置将自动设置该侦听器更新以固定更新循环;动态使用其他方式。

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

public void awake() {

audio.velocityupdatemode =audiovelocityupdatemode.fixed;

}

}

audio.velocityupdatemode =audiovelocityupdatemode.fixed;

相关阅读

文章点评
相关文章