找回密碼
 注冊帳號

掃一掃,訪問微社區

audiochorusfilter.velocityupdatemode 速度更新模式

2015-1-3 16:07| 發布者: 楊炎| 查看: 2942| 評論: 0|原作者: 蠻牛|來自: unity3d腳本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;

相關閱讀

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