public static class InputActionAssetWriterWrites an InputActionAssetData back out as a .vxinput.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
The dialect [doc 08](../../../docs/plan/08-asset-pipeline-and-addressables.md) settles on: two-space indent, block style, no document-start marker, keys in the order the record declares them, \n line endings and a trailing newline.
A key whose value is the default is left out. This is the one place the engine's YAML omits defaults, and it is because the file is read by people: an action list where every entry carries controlType: button and groups: buries the two lines that differ. What is omitted is recoverable — InputActionAssetReader fills the same defaults in — so a write-read round trip is the identity, which is what the round-trip test asserts.
Methods (1)
public static string Write(InputActionAssetData asset)Writes a document.
Used by (2)
- InputActionAssetTestsVixen.Input.Tests
- InputActionsDocumentVixen.Editor.AssetEditors