PlayerControllerHelperGetControllerT(Int32) Method |
Gets a controller of the specified type assigned to this Player.
Namespace: RewiredAssembly: Rewired_Core (in Rewired_Core.dll) Version: 1.0.0+20d1932ee9c49d9b6496f76a0835fd9b82311ad2
Syntaxpublic T GetController<T>(
int controllerId
)
where T : Controller
Parameters
- controllerId Int32
- Controller id - Get this from the Controller.id property. For Keyboard and Mouse, just use 0.
Type Parameters
- T
- Controller type
Return Value
T
See Also