public sealed class QueryDocumentAn environment query, open for editing: two lists, in order.
Remarks
⚠ A list and not a graph — doc 37 § D14. Unreal draws EQS on a graph canvas, and what is on that canvas is a root with a fixed list of children and no wiring decisions anywhere. So the document is what the thing is: generators, then tests, in the order they run.
Fields and properties (7)
public const string ExtensionWhat an environment query is written as.
public string AssetPathWhere the file is, absolute.
public QueryContent ContentThe query as a file holds it.
public string? LoadErrorWhy the file would not read, or .
public IReadOnlyList<BehaviorTreeDiagnostic> DiagnosticsWhat the last Compile had to say.
public EnvironmentQuery? QueryWhat the last Compile produced, or .
public QueryResults ResultsThe points the last Preview generated and scored.
Events (1)
public Action<QueryDocument>? ChangedRaised after anything changes.
Methods (8)
public QueryDocument(EditorProject project, AssetId asset, string path)Opens a query.
public string ToYaml()The query as it would be written.
public EnvironmentQuery? Compile(BehaviorTreeResolver? resolver = null)Compiles the query.
public bool Preview(World world, Vector3 querier, Vector3? context = null, BehaviorTreeResolver? resolver = null)Runs the query from a point and keeps every scored candidate, which is what the preview draws.
public void Edit(string name, Action<QueryContent> gesture, string? mergeKey = null)Runs a gesture as one undo entry.
public bool MoveTest(int index, int delta)Moves a test up or down the list.
protected override void SaveCore()Writes the document back to wherever it came from.
public static QueryContent Copy(QueryContent content)A deep copy of a query, for an undo entry.
Used by (5)
- QueryDocumentTestsVixen.Editor.AssetEditors.Tests
- QueryEditorFactoryVixen.Editor.AssetEditors
- QueryViewVixen.Editor.AssetEditors
- QueryViewTestsVixen.Editor.AssetEditors.Tests
- SnapshotCommandVixen.Editor.AssetEditors