找回密碼
 注冊帳號

掃一掃,訪問微社區

audiochorusfilter.priority 優先權

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

摘要: audiosource.priority 優先權varpriority: intdescription描述sets the priority of theaudiosource設置audiosource的優先權。unity is virtualizing audiosources, when there's more audiosources playing than av ...

audiosource.priority 優先權

varpriority: int

description描述

sets the priority of theaudiosource

設置audiosource的優先權。

unity is virtualizing audiosources, when there's more audiosources playing than available hardware channels. the audiosources with lowest priority (and audibility) is virtualized first. priority is an integer between 0 and 256. 0=highest priority, 256=lowest priority

當有播放的audiosource比可用的硬件通道多,unity虛擬化audiosource。audiosource帶有最低的優先權(和可聽度)被首先虛擬化。優先權是一個整數在0到256之間。0=最高優先權,256=最低優先權。

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

void awake() {

audio.priority = 256;

}

}

// occlude this sound if we dont have hardware resources to virtualize it

//如果沒有硬件資源來虛擬化它,屏蔽這個聲音

audio.priority = 256;

相關閱讀

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