Binding lambda to dynamic multicast delegates request
Why I can't bind lambda to dynamic multicast delegates? It's very important thing binding lambdas to delegates, and to simple delegates I can do that. But what about dynamic multicast? I want to bind some functionality to my UButton, and I don't want declare specified functions for every my button. I want to bind just lambda due to pithiness of code.
asked Jul 08 '16 at 09:33 AM in C++ Programming
A dynamic delegate cannot bind to native code - it needs to be a UFUNCTION because it is bound using a UObject* and function name. This is necessary for reflection of dynamic delegates to work, and therefore serialisable and callable from BPs, and why there is a distinction between delegates and dynamic delegates in the first place.
answered Jul 08 '16 at 09:38 AM
Steve Robb STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here