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"

Blueprint TMap "Find key"?

Do TMaps have a low-level/fast way of finding any key with a certain value, in C++, that can be exposed to Blueprint? I mean, literally just any key in the map (the first one it finds in memory) that has a certain value.

Not really knowing anything about low-level code, it just feels like there should be a quicker way to do this than creating an array from the keys & iterating over it?

alt text

And if that really is the best way - please consider this a request for a C++ version of the above, as an official node? Like:

alt text

(where the bottom output is false if no key was found with that value)

Product Version: UE 4.19
getmapvalue.png (190.8 kB)
getmapkey.png (17.8 kB)
more ▼

asked Apr 24 '18 at 09:55 PM in Blueprint Scripting

avatar image

460 13 26 39

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Yes please, this would make sense in multiple situations I have found myself in and desiring this.

more ▼

answered May 26 '19 at 03:01 AM

avatar image

1 1 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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