Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


PlayOnDualShock4(int)

Enable playing of audio source though a specfic DUALSHOCK™4 controller.
Read time 1 minuteLast updated 8 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.AudioModule
Warning
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.