add_eqs_test
Add a test class to an EQS query option idempotently, with undo support and optional option targeting.
Instructions
Add a test of test_class to an option of a UEnvQuery asset, after the option's existing tests. Idempotent per class: if the option already has a test of that class, that one is returned (already_existed=true) and nothing is added, so an option holds at most one test per class. option_index names an existing option, or equals the option count to append one new empty option; a negative option_index, or one past the option count, is an error checked before anything changes. Undoable as one editor transaction; marks the asset dirty without saving (save_asset). Valid classes: list_eqs_test_types; configure the test with set_eqs_test_scoring; remove_eqs_test is the inverse.
Returns: { query_path, option_index, test_class, test_name, test_index, test_count, already_existed } — idempotent by test class within the option
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query_path | Yes | /Game/... path to the UEnvQuery asset (required) | |
| test_class | Yes | Test class name (e.g. "Distance", "Trace", "Pathfinding", "Dot") or full path | |
| option_index | No | Optional option index to target (default 0); the current option count appends a new option, a larger index is refused |