PlayOnGamepad(int)
Enable the audio source to play through a specific gamepad.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.AudioModule
public bool PlayOnGamepad(int slot)
Parameters
Slot number of the gamepad (0-3).
Returns
Type | Description |
|---|---|
| bool | Returns TRUE if enabling audio output through this users controller was successful. |
Remarks
Set your current BuildTarget to PS4 or PS5 to avoid a build error in the Windows Editor.