Skip to main content

Class PlayerInputDataLog

Top-level serialisable container for one snapshot of all player input, matching the JSON schema expected by the PHP backend endpoint that receives study telemetry.

[Serializable]
public class PlayerInputDataLog : DataLog

Inheritance​

Remarks​

The nested ActionMaps → ActionMap_inputs structure mirrors Unity's own InputActionMap hierarchy, making it straightforward to reconstruct which action map each input belongs to during post-hoc analysis.

Constructors​

PlayerInputDataLog()​

Initializes a new instance of the PlayerInputDataLog class.

public PlayerInputDataLog()

Fields​

ActionMaps​

The list of action maps and their captured input data.

public List<ActionMapData> ActionMaps

Field Value​

List<ActionMapData>

Methods​

isEmpty()​

Determines whether this log contains any input data.

public bool isEmpty()

Returns​

bool — True if there are no inputs logged; otherwise, false.