TMap Hashable KeyType
I am trying to use a TMap with a struct as the key. The struct is a collection of ints. I need to provide a custom key to get it to work.
I have tried to follow the TMap docs and having absolutely no luck getting it to work, so was hoping someone could explain how to do this.
It's been a few weeks since I asked this, and I finally figured it out by combing through the vector structs.
For anyone who might also have this problem:
In your struct you need to add a operator override== , and then outside your struct, a GetTypeHash. My mistake was using the GetTypeHash inside my method.
There is a non-deprecated version of that Memcrc, but since epic are using it in all theirs, I just went with it.
answered Sep 30 '17 at 04:50 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here