Vixen
02b45cc4
csharp
public sealed class AnimationGraphDocument

An animation graph, open for editing.

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

Remarks

The third graph doc 11 names. The model and the compiler are Vixen.Editor.AnimationGraph's — which knows nothing about a project, a document or a panel, so its tests compile a graph with no editor in the way — and this is the YAML end of it and the undo stack over it.

⚠ Compiled when it is asked for, not on every edit. Adding a state produces a graph with a state nothing transitions to; adding a transition produces one whose destination is briefly the wrong state. Compiling on every change would fill the panel with complaints about a state somebody is halfway through leaving — the same rule CompositorDocument states.

⚠ Clips are not resolved and the compiler is told so. Loading an AnimationClip needs the skeleton it is baked against, which the editor has no way to choose from a graph alone; the compiler reports each unresolved clip and checks the topology anyway, which is the half of a graph an author can actually get wrong.

Fields and properties (6)

  • public const string Extension

    What an animation graph is written as.

  • public string AssetPath

    Where the file is, absolute.

  • public AnimationGraphAsset Graph

    The graph.

  • public string? LoadError

    Why the file would not read, or .

  • public IReadOnlyList<AnimationGraphDiagnostic> Diagnostics

    What the last Compile had to say.

  • public AnimationGraphArtefact? Artefact

    What the last Compile produced, or .

Events (1)

Methods (15)

Used by (4)

  • AnimationGraphEditorFactoryVixen.Editor.AssetEditors
  • AnimationGraphViewVixen.Editor.AssetEditors
  • AuthoringTestsVixen.Editor.AssetEditors.Tests
  • StateMapViewVixen.Editor.AssetEditors