I have an Actor Component with a multicast delegate:
DECLARE_MULTICAST_DELEGATE_OneParam(FMyEvent, FString, StringParameter);
//...
FMyEvent MyEvent;
That delegate is broadcasted in that component, and I want another class (not UClass) to bind that event to one of its functions, but I’m getting error C2679:
MyComponent->MyEvent.AddUniqueDynamic(this, &MyClass::MyFunction);
//...
void MyClass::MyFunction(FString MyParameter)
{
//...
}
Based on the error’s description I guess that I cannot do this kind of bound with a non UClass (or similar), so I was wondering if there is any other way to get what I want.