Vixen
02b45cc4
csharp
public static class YamlReader

Turns YAML text into a YamlNode tree.

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

Remarks

Built on YamlDotNet's event stream — Scanner and Parser — and on nothing else from that library. Its object model and its reflection-driven deserializer are exactly what a .meta file must not go through: type resolution here is the generated TypeRegistry, so reading an asset works on a trimmed NativeAOT build where a reflective deserializer finds no members at all.

Comments are read rather than skipped, which is not the default. A migration that rewrote a hundred thousand .meta files and silently deleted every comment an artist had written would be a diff nobody could review, and that is the failure the byte-fidelity requirement in [08](../../../docs/plan/08-asset-pipeline-and-addressables.md) exists to prevent.

Methods (2)

  • public static YamlNode Read(string text)

    Reads a document.

  • public static YamlNode Read(TextReader input)

    Reads a document.

Used by (31)

  • AssetMetaFileVixen.Core.Yaml
  • DockLayoutVixen.Ui.Controls.Advanced
  • MetaTestsVixen.Core.Yaml.Tests
  • RoundTripTestsVixen.Core.Yaml.Tests
  • ThemeTokensVixen.Ui.Styling.Utilities
  • YamlDialectTestsVixen.Core.Yaml.Tests
  • YamlSerializerVixen.Core.Yaml
  • AnimationClipImporterVixen.Editor.Assets
  • AssetDatabaseVixen.Editor.Core
  • ClipMetadataTestsVixen.Editor.Assets.Tests
  • CompositorImporterVixen.Editor.Assets
  • EditorApplicationVixen.Editor.App
  • ImportPipelineVixen.Editor.Assets
  • ImportPipelineTestsVixen.Editor.Assets.Tests
  • ImportSettingsDocumentVixen.Editor.AssetEditors
  • InProcessImportExecutorVixen.Editor.Assets
  • KeyMapVixen.Editor.Ui
  • KeyMapPresetVixen.Editor.Ui
  • MaterialImporterVixen.Editor.Assets
  • NativeFormatImporterVixen.Editor.Assets
  • NavMeshImporterVixen.Editor.Assets
  • ProjectHistoryVixen.Editor.App
  • ProjectMarkerVixen.Editor.Core
  • SceneImporterVixen.Editor.Assets
  • ShapeYamlVixen.Editor.Assets
  • StringCatalogVixen.Editor.Ui
  • TerrainAssetImporterVixen.Editor.Assets
  • TerrainModuleVixen.Editor.Terrain
  • ThemeServiceVixen.Editor.Ui
  • VfxImporterVixen.Editor.Assets
  • WindowPlacementVixen.Editor.Host