找回密码
 注册帐号

扫一扫,访问微社区

audiochorusfilter.priority 优先权

2015-1-3 15:07| 发布者: 杨炎| 查看: 2467| 评论: 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;

相关阅读

文章点评
相关文章