Version: 2023.1

AudioSettings.driverCapabilities

切换到手册
public static AudioSpeakerMode driverCapabilities ;

描述

返回当前音频驱动程序的扬声器模式功能。(只读)

using UnityEngine;

public class Example : MonoBehaviour { // Set the speaker mode to that of the system settings.

void Start() { AudioSettings.speakerMode = AudioSettings.driverCapabilities; } }