Vixen
02b45cc4
csharp
public sealed class AddressableGroupDocument

One addressable group's policy, open for editing.

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

Remarks

A .vxgroup is one group and one file. Unity keeps the group membership in the group and gets a second identity system for it; doc 08 keeps membership in each asset's sidecar and the policy here, which is what makes "which group is this asset in" a question with one answer and one place to change it.

⚠ The file name and the group's name are not tied together, and ProjectWorkspace is what refuses two files defining one name. Renaming the group here does not rename the file, because a file rename is a project-level operation with its own undo entry on the global stack — and doing it as a side effect of typing in a field would be a rename nobody asked for on every keystroke.

Fields and properties (4)

  • public const string Extension

    What a group file is written as.

  • public string AssetPath

    Where the file is, absolute.

  • public AddressableGroupEdits Policy

    The policy, as an inspector edits it.

  • public string? LoadError

    Why the file did not read, or if it did.

Methods (4)

  • public AddressableGroupDocument(EditorProject project, AssetId asset, string path)

    Opens a group.

  • public AddressableGroup ToGroup()

    The policy as the record the build reads.

  • public string ToYaml()

    The file as this document would write it, without writing it.

  • protected override void SaveCore()

    Writes the document back to wherever it came from.

Used by (3)

  • AddressableGroupDocumentTestsVixen.Editor.AssetEditors.Tests
  • AddressableGroupEditorFactoryVixen.Editor.AssetEditors
  • AddressableGroupsViewVixen.Editor.AssetEditors