you have to return the actor by pointer not reference
UFUNCTION(BlueprintCallable, meta = (DynamicOutputParam="SomeActor" ))
bool Check(EKeyEnum KeyType, AActor* SomeActor);
you have to return the actor by pointer not reference
UFUNCTION(BlueprintCallable, meta = (DynamicOutputParam="SomeActor" ))
bool Check(EKeyEnum KeyType, AActor* SomeActor);