add_state_evaluator
Attach an evaluator to a UStateTree by struct name so it ticks for the whole tree; skips duplicates and saves the asset.
Instructions
Attach an evaluator node (by struct name, via reflection) to a UStateTree; evaluators are TREE-scoped (they live on UStateTreeEditorData::Evaluators, not on a state) and tick for the whole tree, so this command takes no state_name. Idempotent: an evaluator of the same struct already present is not appended again.
Returns: { tree_path, evaluator_class, evaluator_count, already_existed, added, saved }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tree_path | Yes | Asset path to the UStateTree. | |
| evaluator_class | Yes | Evaluator struct name or /Script path; must derive from StateTreeEvaluatorBase (e.g. "TestEval_A" from the StateTree test suite, or any project/plugin evaluator struct). |