public static class YamlSerializerBinds a YamlNode tree to typed objects, and back.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
Everything goes through the generated type registry. A member is found through a TypeDescriptor, read and written through the lambdas the reflection generator emitted, and a !TextureImporter tag is resolved by asking TypeRegistry what claims that name. Nothing here calls PropertyInfo.GetValue, walks an assembly, or builds a generic method at runtime, so reading a .meta file works on a trimmed NativeAOT build — which is the property Phase 3 exists to establish before the codebase is large enough for it to be expensive.
This is not a frame-loop API. Every member read and write boxes, because that is what a descriptor's accessors do. It is for import, tooling and boot-time configuration, where one allocation per property is invisible; runtime asset data goes through the binary serializer instead.
Methods (6)
public static T Parse<T>(string yaml, YamlSerializerOptions? options = null)Reads a document into a value.
public static string ToYaml<T>(T value, YamlSerializerOptions? options = null)Writes a value as a document.
public static T Deserialize<T>(YamlNode node, YamlSerializerOptions? options = null)Binds a node to a value.
public static object? Deserialize(YamlNode node, Type expected, YamlSerializerOptions? options = null)Binds a node to a value.
public static YamlNode Serialize<T>(T value, YamlSerializerOptions? options = null)Turns a value into a node.
public static YamlNode Serialize(object? value, Type declared, YamlSerializerOptions? options = null)Turns a value into a node.
Used by (50, showing 40)
- FrameDocumentTestsThirdPersonShooter.Frame.Tests
- VirtualGeometryGameVirtualGeometry
- AssetMetaFileVixen.Core.Yaml
- BufferTransferTestsVixen.Rendering.Tests
- CompositorAssetTestsVixen.Rendering.Tests
- GpuDrivenCompositorTestsVixen.Rendering.Tests
- MetaTestsVixen.Core.Yaml.Tests
- SceneRenderHostTestsVixen.Engine.Renderer.Tests
- SerializerTestsVixen.Core.Yaml.Tests
- VirtualGeometryDeviceTestsVixen.Graphics.Golden.Tests
- WorldRendererTestsVixen.Engine.Renderer.Tests
- AddressableGroupDocumentVixen.Editor.AssetEditors
- AddressableGroupDocumentTestsVixen.Editor.AssetEditors.Tests
- AnimationBinderVixen.Editor.AssetEditors
- AnimationClipAssetVixen.Editor.Assets
- AnimationGraphDocumentVixen.Editor.AssetEditors
- AnimationGraphTestsVixen.Editor.AnimationGraph.Tests
- AudioMixerDocumentVixen.Editor.AssetEditors
- CompositorDocumentVixen.Editor.AssetEditors
- CompositorImporterVixen.Editor.Assets
- EditorApplicationVixen.Editor.App
- EditorScriptTestsVixen.Editor.Scripts.Tests
- FontAssetVixen.Editor.AssetEditors
- HarnessDocumentVixen.Editor.AssetEditors
- ImportSettingsDocumentVixen.Editor.AssetEditors
- InProcessImportExecutorVixen.Editor.Assets
- ManifestTestsVixen.Editor.Plugin.Tests
- MaterialAssetVixen.Editor.AssetEditors
- MaterialImporterVixen.Editor.Assets
- MaterialTestsVixen.Editor.AssetEditors.Tests
- MoveSetDocumentVixen.Editor.AssetEditors
- NodeGraphModelTestsVixen.Editor.NodeGraph.Tests
- PluginDiscoveryVixen.Editor.Plugin
- ProjectSettingsStoreVixen.Editor.Core
- ProjectWorkspaceVixen.Editor.Assets
- ProxyShapeDocumentVixen.Editor.AssetEditors
- ProxyShapeSetImporterVixen.Editor.Assets
- SceneFileVixen.Editor.Core
- SceneSerializerVixen.Editor.SceneView
- SequenceAssetVixen.Editor.AssetEditors