[TSharedPtr](API\Runtime\Core\Templates\TSharedPtr)< [FEnvQueryInstance](API\Runtime\AIModule\EnvironmentQuery\FEnvQueryInstance) > CreateQueryInstance ( const [UEnvQuery](API\Runtime\AIModule\EnvironmentQuery\UEnvQuery) * Template, [EEnvQueryRunMode::Type](API\Runtime\AIModule\EnvironmentQuery\EEnvQueryRunMode__Type) RunMode )