Vixen
02b45cc4
csharp
public static class YamlWriter

Writes a YamlNode tree in the Vixen dialect.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

Vixen's own rather than YamlDotNet's emitter, because the dialect [08](../../../docs/plan/08-asset-pipeline-and-addressables.md) fixes is narrower than anything that emitter can be configured into, and because byte fidelity is a requirement here rather than a nicety: a migration that rewrites every .meta file in a project must produce a diff of the lines it meant to change and no others.

The dialect: two-space indent, block style, flow style for small all-scalar collections, no document-start marker, keys in the order the mapping holds them (which is the order the C# record declares them), \n line endings, and a trailing newline.

Fields and properties (1)

  • public const int FlowWidthLimit

    How wide a flow collection may render, including its indent, before it is written as a block instead.

Methods (2)

  • public static string Write(YamlNode root)

    Writes a document.

  • public static void Write(TextWriter output, YamlNode root)

    Writes a document.

Used by (19)

  • DockLayoutVixen.Ui.Controls.Advanced
  • MetaTestsVixen.Core.Yaml.Tests
  • RoundTripTestsVixen.Core.Yaml.Tests
  • YamlDialectTestsVixen.Core.Yaml.Tests
  • YamlSerializerVixen.Core.Yaml
  • AnimationClipAssetVixen.Editor.Assets
  • AnimationClipImporterTestsVixen.Editor.Assets.Tests
  • AssetDatabaseVixen.Editor.Core
  • ClipMetadataTestsVixen.Editor.Assets.Tests
  • EditorApplicationVixen.Editor.App
  • ImportPipelineVixen.Editor.Assets
  • ImportPipelineTestsVixen.Editor.Assets.Tests
  • ImportSettingsDocumentVixen.Editor.AssetEditors
  • KeyMapVixen.Editor.Ui
  • KeyMapPresetVixen.Editor.Ui
  • ProjectHistoryVixen.Editor.App
  • ProjectSettingsStoreVixen.Editor.Core
  • StringCatalogVixen.Editor.Ui
  • WindowPlacementVixen.Editor.Host