Delegate works in Blueprint but not c++
I am having some troubles with a c++ delegate that I have created. I have an object(named ParentObj for sake of example) with a component (named CompObj for example). This component has a Dynamic Multicast delegate:
In the header of the component I have:
In the ParentObj, I am calling a function when this delegate is executed:
For some reason SomeFunction is never called. I know that the delegate is being broadcasted because I am able to define functionality in blueprints when this delegate broadcasts and it works. IE. if in blueprints I go: event CompleteComp - > do something node, the do something node fires correctly. It just seems that the c++ function never does.
There is nothing strange about this function either. The header containing it looks like this:
The .cpp looks like:
Any help you can provide would be greatly appreciated. I am sure it is just something that I am doing wrong.
asked Mar 29 '16 at 07:28 PM in C++ Programming
In my situation it appears that this bug only existed in version 4.10. I have upgraded through several versions all the way up to 4.14 since originally posting this question and have not seen the issue since. For this reason, I will mark this as answered.
answered Feb 15 '17 at 03:26 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here