Can somebody please explain to me how can i bind functions to the delegate i declared
DECLARE_DYNAMIC_MULTICAST_DELEGATE(FCharOverlap);
So this was in ActorComponent.h
Then I declared a UPROPERTY also that is
FCharOverlap CharOverlap;
Now i want to bind a function that is present in SomeOtherActor .h
So what i did was inside ActorComponent.cpp beginPlay() i wrote
CharOverlap.AddDynamic(this, &SomeOtherActor::somefunction);
But it shows error saying that AddDynamic is not a member of FCharOverlap
Moreover i dont know what is this doing here why do we need it …
Please help im kinda stuck.