DoopelPonger
Public Member Functions | List of all members
UIControlsSerializer Class Reference

Class to save and load previous controls scheme configured from the settings menu. More...

Inheritance diagram for UIControlsSerializer:
Inheritance graph
[legend]
Collaboration diagram for UIControlsSerializer:
Collaboration graph
[legend]

Public Member Functions

void Awake ()
 Initialize references. More...
 
void LoadToFile (InputActionMapper.Action[] actions)
 Save the list of actions and their KeyCodes to the Controls.json file in the streaming assets directory. More...
 
void LoadFromFile ()
 Load the json data from the Controls.json file in the streaming assets directory with the action/KeyCode information. More...
 

Detailed Description

Class to save and load previous controls scheme configured from the settings menu.

Member Function Documentation

◆ Awake()

void UIControlsSerializer.Awake ( )

Initialize references.

◆ LoadFromFile()

void UIControlsSerializer.LoadFromFile ( )

Load the json data from the Controls.json file in the streaming assets directory with the action/KeyCode information.

◆ LoadToFile()

void UIControlsSerializer.LoadToFile ( InputActionMapper.Action []  actions)

Save the list of actions and their KeyCodes to the Controls.json file in the streaming assets directory.

Parameters
actionsThe list of actions to save.

The documentation for this class was generated from the following file: