add_eqs_generator
Adds or replaces a UEnvQueryGenerator on a UEnvQuery option, and can append a new empty option by using the current option count.
Instructions
Adds a UEnvQueryGenerator subclass to a UEnvQuery option. If the option has no generator yet, this becomes it; otherwise replaces. 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.
Returns: { query_path, option_index, generator_class, generator_name, replaced, saved }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query_path | Yes | /Game/... path to the UEnvQuery asset (required) | |
| option_index | No | Optional option index to target (default 0); the current option count appends a new option, a larger index is refused | |
| generator_class | Yes | Generator class name (e.g. "ActorsOfClass", "SimpleGrid", "PathingGrid") or full path (e.g. "/Script/AIModule.EnvQueryGenerator_ActorsOfClass") |