Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 460 Bytes

File metadata and controls

15 lines (11 loc) · 460 Bytes
uid input-system-configure-input-from-json

Configure input from JSON

You can load actions as JSON in the form of a set of action maps or as a full InputActionAsset. This also works at runtime in the Player.

// Load a set of action maps from JSON.
var maps = InputActionMap.FromJson(json);

// Load an entire InputActionAsset from JSON.
var asset = InputActionAsset.FromJson(json);