Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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.

Product Version: UE 4.17
more ▼

asked Sep 19 '17 at 01:59 PM in Using UE4

avatar image

838 17 21 36

avatar image jenniferbrownz Jun 23 '18 at 07:55 AM

I have a translucent sphere that the player can pass into and out of. But when I pass into the sphere, I can't see it anymore from the inside. Is there a way to make a material that would allow me to see the sphere even when I pass into it? kissmanga

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

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.


 struct FStructName
     int x;
     int y;
      bool operator==(const FStructName& a) const
         return x == a.x && y == a.y;
 // end of struct
 FORCEINLINE uint32 GetTypeHash(const FStructName& b)
     return FCrc::MemCrc_DEPRECATED(&b, sizeof(FStructName));

There is a non-deprecated version of that Memcrc, but since epic are using it in all theirs, I just went with it.

more ▼

answered Sep 30 '17 at 04:50 PM

avatar image

838 17 21 36

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question