Download

What is the best way to create a Heap data structure using blueprints?

What is the best way to implement a heap using blueprints? Should I just use an array and write the blueprint myself? At the moment I have an object with an array and that has SortUp and SortDown functions.

I noticed that the documentation for the TArray has heap functionality but I’m not seeing that exposed via the blueprint. Does the array work like a heap?

You can use an array like a heap. Just remove the first index every time…