Click or drag to resize

PlayerControllerHelperMapHelperAddMapsFromJson Method (ControllerType, Int32, ListString)

Adds multiple controller maps to the Player from Json save data.

Namespace:  Rewired
Assembly:  Rewired_Core (in Rewired_Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public int AddMapsFromJson(
	ControllerType controllerType,
	int controllerId,
	List<string> jsonStrings
)

Parameters

controllerType
Type: RewiredControllerType
Controller type
controllerId
Type: SystemInt32
Controller id - Get this from the Controller.id property. For Keyboard and Mouse, just use 0.
jsonStrings
Type: System.Collections.GenericListString
Json save data

Return Value

Type: Int32
>Returns the number of Controller Maps added.
See Also