Custom Struct == Operator with Array.Find
I have a little problem with a custom C++ Struct being used in an Array in Blueprints. If I use Array.Find to find an item inside, the overloaded == operator is not called. But if I use my custom Compare Method, written to expose this function to blueprints, it works as expected. Can someone point to my mistake here?
I hope someone knows whats wrong here. I need to override the == operator, because I don't want to compare all properties, because the Object State should not be compared (as this is different 99% of times).
Have you tried using FORCEINLINE instead of inline? Everything looks okay to me except that - maybe somehow reflection is messing stuff up if your overidden operator isn't [something something weird reflection system magic dragons].
If not that, then what was the output of your debug stuff? Are you seeing the message when the operator runs? (I assume not if you've concluded the operator never fires.)
answered Jun 05 '17 at 10:47 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here