Vixen
02b45cc4
csharp
public record class AssetMeta

The whole of a .meta sidecar.

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

Remarks

The pattern is Unity's, unchanged and adopted deliberately (ADR-005): one sidecar per imported file, one per folder, committed next to the asset, and the GUID is the identity — generated on first import, never regenerated, path-independent, so moving or renaming a file breaks no reference anywhere. The schema inside is Vixen's.

Key order here is the order it is written in, and the envelope — Guid, MetaVersion, Importer — comes first on purpose. That is what lets the index rebuild read three lines of a file and stop; see MetaScanner.

Fields and properties (6)

  • public AssetId Guid

    The identity. Assigned once, never rewritten.

  • public int MetaVersion

    Which version of this envelope schema the file was written against.

  • public IImportSettings? Importer

    Which importer made it, and how it was configured.

  • public AddressableInfo? Addressable

    Where it appears in a shipped build, if it does.

  • public SubAssetEntry[] SubAssets

    What is inside it.

  • public Dictionary<string, string> Extensions

    User and plugin metadata, keyed by name — the typed replacement for Unity's untyped userData string.

Used by (13)

  • AssetMetaFileVixen.Core.Yaml
  • MetaTestsVixen.Core.Yaml.Tests
  • TypeRegistrationVixen.Core.Yaml
  • AnimationBinderVixen.Editor.AssetEditors
  • BuildPlannerVixen.Editor.Assets
  • ContentPipelineVixen.Editor.Assets
  • DoctorRunnerVixen.Cli
  • EditorApplicationVixen.Editor.App
  • PlannedAssetVixen.Editor.Assets
  • PlannedProjectVixen.Editor.Assets.Tests
  • ProjectAssetVixen.Editor.App
  • SceneManifestTestsVixen.Editor.Assets.Tests
  • VixenCommandTestsVixen.Cli.Tests