Click or drag to resize

PlayerControllerHelperMapHelperLoadMapT(Int32, Int32, Int32, Boolean) Method

Loads a controller map from the maps defined in the Rewired Editor. Replaces if a map already exists with the same category and layout. If enabled is set to true and rules exist that apply to the map, the enabled state will be set based on those settings overriding the startEnabled setting passed into the function.

Namespace: Rewired
Assembly: Rewired_Core (in Rewired_Core.dll) Version: 1.0.0+20d1932ee9c49d9b6496f76a0835fd9b82311ad2
Syntax
C#
public void LoadMap<T>(
	int controllerId,
	int categoryId,
	int layoutId,
	bool startEnabled
)
where T : ControllerMap

Parameters

controllerId  Int32
Controller id - Get this from the Controller.id property. For Keyboard and Mouse, just use 0.
categoryId  Int32
Category id
layoutId  Int32
Layout id
startEnabled  Boolean
Start this map enabled?

Type Parameters

T
Controller map type
See Also