audiochorusfilter.velocityupdatemode 速度更新模式

2015-1-3 16:07| 发布者: 杨炎| 查看: 2598| 评论: 0|原作者: 蛮牛|来自: yzc88亚洲城脚本manual

摘要: audiosource.velocityupdatemode 速度更新模式varvelocityupdatemode:audiovelocityupdatemodedescription描述whether the audio source should be updated in the fixed or dynamic update.audiosource是否应该以固 ...

audiosource.velocityupdatemode 速度更新模式

varvelocityupdatemode:audiovelocityupdatemode

description描述

whether the audio source should be updated in the fixed or dynamic update.

audiosource是否应该以固定或动态的方式更新?

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

如果你遇到了这个源的多普勒效应模拟问题,请确保设置这个更新与audiosource的移动在同一循环内。如果它被附加到一个刚体,默认设置将自动设置该源以固定的更新周期更新,其他方式以动态方式。

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

void awake() {

audio.velocityupdatemode =audiovelocityupdatemode.fixed;

}

}

audio.velocityupdatemode =audiovelocityupdatemode.fixed;

相关阅读

文章点评
相关文章