Bind event not compiling in blueprints
I a new to Unreal development. I'm using blueprints for my AI and I hope you can point me in the right direction for my problem.
I work with an AIPerception Component. When I bind a custom event to the OnTargetPerceptionUpdated event dispatcher -> it compiles. When I bind a custom event to the OnTargetUpdated event dispatcher -> it doesn't compile and gives me the message "Event signature error. Function not compatible".
Is this a bug in the engine ? Or is there a concept I don't get ?
ue version : 4.10.3 on windows
asked Feb 21 '16 at 03:23 PM in Blueprint Scripting
I believe the problem here is blueprints use references, so the fix would be to change the delegate parameter type from
However, this introduces another error, because delegate parameters must be const. again, there is a simple fix for this:
So for example, my final delegate declaration is this:
Hope this helps,
answered Mar 09 '16 at 05:12 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here