文档

Unity Engine

Unity Engine

PlayOnDualShock4(int)

Enable playing of audio source though a specfic DUALSHOCK™4 controller.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.AudioModule
警告
Deprecated. Use PlayOnGamepad instead
public bool PlayOnDualShock4(int userId)

Parameters

userId

UserId of the DUALSHOCK™4 controller to play the audio source through.

Returns

Type

Description

boolReturns TRUE if enabling audio output through this users controller was successful.