Unrecognized Type 'FSampleDelegate'

Hi,

I’m currently trying to create a delegate in one of my classes. I’ve followed the examples found online but for some reason it gives me this error

My code is as follows

230334-code.png

What exactly am I doing wrong?

To make event dispacher you need to use BlueprintAssignable not BlueprintCallable which can be only used in UFUNCTIONs

https://docs.unrealengine.com/latest/INT/Programming/UnrealArchitecture/Reference/Properties/Specifiers/BlueprintAssignable/