Skip to main content

Struct InputData

The smallest unit of logged input: a named action and its sampled value.

[Serializable]
public struct InputData

Remarks​

All values are stored as float regardless of the original control type so that the serialised JSON remains a flat, uniform array that the PHP backend can parse without type-switching. Vector2 actions are split into two InputData entries (suffixed .x and .y) by Vector2) before they reach this struct.

Constructors​

InputData(string, float)​

public InputData(string name, float value)

Parameters​

NameTypeDescription
namestringThe action name, e.g. "Steer" or "Steer.x".
valuefloatThe sampled float value for this action at the time of logging.

Fields​

Input_name​

The name of the input action.

public string Input_name

Field Value​

string

Input_value​

The value of the input (float for axis or button, or component of Vector2).

public float Input_value

Field Value​

float