AudioSettings.seakerMode扬声器模式AudioSettings.speakerMode扬声器模式
static var speakerMode:AudioSpeakerMode
Description描述
Sets or gets the current speaker mode.Default is2channel stereo.
设置或获取当前扬声器的模式。默认为2声道立体声。
Be aware that the audio system is bootstrapped,when a new speaker mode is set,meaning that all playing AudioSources are stopped.If a speaker mode is set beyond the drivers capability,the audio behaviour is undefined.Use AudioSettings.driverCaps to get the capabilities of the current driver.
请注意,音频系统是引导程序,当一个新的扬声器模式设置,这意味着所有正播放的音频源被停止。如果扬声器模式设置超出了驱动程序功能,则音频的行为是未定义的。使用AudioSettings.driverCaps
获取当前驱动程序的功能。
C#
JavaScript
using UnityEngine;
using System.Collections;
public class example:MonoBehaviour{
public void Awake(){
AudioSettings.speakerMode=AudioSettings.driverCaps; //To set the speaker mode to that of the system settings. //设置扬声器模式到系统的设置
AudioSettings.speakerMode=AudioSettings.driverCaps;
Page last updated:2011-1-7
AudioSettings.outputSampleRate输出的采样率AudioChorusFilter.bypassEffects直通效果PhysicMaterial.PhysicMaterial构造物理材质
TerrainData.GetHeights获取高度列表
Terrain.Flush刷新
AssetDatabase.StopAssetEditing停止资源编辑
Cloth布料
Component.CompareTag比较标签
LineRenderer线渲染器
Camera.RenderWithShader用Shader渲染
bootstrappedMaterial.GetVector获取向量
ObjectNames物体名字
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论