Vixen
dd8b0a81
csharp
public static class YamlSerializer

Binds 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)

Used by (94, showing 40)

  • FrameDocumentTestsThirdPersonShooter.Frame.Tests
  • FrameDocumentTestsPbrShowcase.Frame.Tests
  • PaintedLayersTestsThirdPersonShooter.Frame.Tests
  • VirtualGeometryGameVirtualGeometry
  • AssetMetaFileVixen.Core.Yaml
  • BakedMaterialImageTestsVixen.Graphics.Golden.Tests
  • BufferTransferTestsVixen.Rendering.Tests
  • CompositorAssetTestsVixen.Rendering.Tests
  • CompositorLifetimeTestsVixen.Rendering.Tests
  • GpuDrivenCompositorTestsVixen.Rendering.Tests
  • LayeredMaterialImageTestsVixen.Graphics.Golden.Tests
  • LodExtractionTestsVixen.Engine.Renderer.Tests
  • MetaTestsVixen.Core.Yaml.Tests
  • SceneRenderHostTestsVixen.Engine.Renderer.Tests
  • SerializerTestsVixen.Core.Yaml.Tests
  • TerrainCasterTestsVixen.Rendering.Terrain.Tests
  • TerrainNodeTestsVixen.Rendering.Terrain.Tests
  • TerrainVelocityTestsVixen.Rendering.Terrain.Tests
  • TextureDemandTestsVixen.Engine.Renderer.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
  • BakedMaterialFileTestsVixen.Editor.AssetEditors.Tests
  • BehaviorTreeDocumentVixen.Editor.AssetEditors
  • CompositorDocumentVixen.Editor.AssetEditors
  • CompositorWriterVixen.Editor.Assets
  • CompositorWriterTestsVixen.Editor.Assets.Tests
  • CurvePresetTestsVixen.Editor.App.Tests
  • EditorApplicationVixen.Editor.App
  • EditorScriptTestsVixen.Editor.Scripts.Tests
  • FileWavesVixen.Editor.Assets.Tests
  • FontAssetVixen.Editor.AssetEditors
  • FrameRunnerVixen.Cli
  • GeometryRunnerVixen.Cli