Click or drag to resize

PlayerControllerHelperMapHelperLoadDefaultMaps Method

Loads the maps defined in the Rewired Editor and assigned to this player for the specified controller type. All existing maps will be cleared and replaced with the default maps. The Enabled state of each map will attempt to be preserved, but if you have added or removed maps through scripting, the result may not be as expected and you should set the Enabled states manually. For Joysticks that have been previously assigned to this Player but are no longer assigned at the time this method is called, the Joystick Map history for these Joysticks will be cleared so the next time the Joystick is assigned to this Player, the default Joystick Maps will be loaded instead of Joystick Maps stored in the history. If ControllerMapEnabler.enabled is set to true and rules exist that apply to the map, the enabled state will be set based on those settings.

Namespace:  Rewired
Assembly:  Rewired_Core (in Rewired_Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public void LoadDefaultMaps(
	ControllerType controllerType
)

Parameters

controllerType
Type: RewiredControllerType
The controller type.
See Also