cant create array of pointers

If you want to pass your custom struct as a reference instead of only copy value, inside your struct you must declare a proper GetHashType(const MyStruct&) and declare all the boolean operators needed for type miss/matching as well.

Then you can do FMyStruct* myStruct;

Also, you can’t use TArray with native types. It should be a UStruct; UStructs always begin with a ‘F’ prefix.