Great video! One point worth highlighting is that selects in Unreal Engine evaluate all input paths upon execution. This feature is excellent for simple tasks, such as choosing between strings, however, it can be suboptimal for more complex operations, like vector math. In such cases, it's more performant to create a custom pure function that first selects the relevant path and then executes only that path.
Good point, but I think this is true only for string switches, but enum and int switches have bunch of optimizations, so they have close to O(1) complexity. Yea for more complex stuff like vectors, other solutions are better 👍
I’ve been coding blueprints for about 3 years now and I didn’t know most things you taught in this video. Awesome and clear!
I love using select, it just reduces lot of nodes
Great video!
One point worth highlighting is that selects in Unreal Engine evaluate all input paths upon execution.
This feature is excellent for simple tasks, such as choosing between strings, however, it can be suboptimal for more complex operations, like vector math.
In such cases, it's more performant to create a custom pure function that first selects the relevant path and then executes only that path.
Good point, but I think this is true only for string switches, but enum and int switches have bunch of optimizations, so they have close to O(1) complexity.
Yea for more complex stuff like vectors, other solutions are better 👍
Oh yeah, I meant selects, not switches. (edited the orginal comment)
Yea, selects check all paths and then execute the right one.@@Liquidkapu