PlayerControllerHelperMapHelperSetAllMapsEnabled Method (Boolean, ControllerType)
Set the enabled state in all controller maps for a particular controller type.
NOTE: This method is not a persistent flag in Player that will set controller maps
enabled/disabled upon loading. It is simply a shortcut for the iterating the controller maps
currently loaded in the Player and set them enabled/disabled at the time the method is called.
When new Controller Maps are loaded in the Player, either manually or when a Joystick is assigned,
the newly loaded maps will be enabled/disabled based on the default enabled state settings for
these maps on the Player page in the Rewired Input Manager, not based on previous calls to
SetMapsEnabled. Read the documentation on Controller Maps for more information.
If you need persistent enabled state management, use ControllerMapEnabler
is set to true and rules exist that affect the Controller Maps you are attempting to change the enabled state on, you should not use this function and instead use the functions in ControllerMapEnabler
Rewired_Core (in Rewired_Core.dll) Version: 18.104.22.168 (22.214.171.124)
public int SetAllMapsEnabled(
- Type: SystemBoolean
The enabled state.
- Type: RewiredControllerType
The controller type.
Number of maps that changed state.