PlayerControllerHelperAddControllerT(Int32, Boolean) Method |
Assigns a controller to this Player.
Namespace: RewiredAssembly: Rewired_Core (in Rewired_Core.dll) Version: 1.0.0+fd80194fe28f6b408ce098e98c53850d307c3a32
Syntaxpublic void AddController<T>(
int controllerId,
bool removeFromOtherPlayers
)
where T : Controller
Parameters
- controllerId Int32
- Controller id - Get this from the Controller.id property. For Keyboard and Mouse, just use 0.
- removeFromOtherPlayers Boolean
- Unassign this controller from all other players.
Type Parameters
- T
- Controller type
See Also