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
| Name | Type | Description |
|---|---|---|
name | string | The action name, e.g. "Steer" or "Steer.x". |
value | float | The sampled float value for this action at the time of logging. |