What are the main props of delegates in UE4
?
I read a lot about them and not sure, why default virtual function as BeginOverlap/Notify/End/etc
is not enough?
Can we use one delegate for a few functions? I mean, If I will declare simple delegate somewhere:
DECLARE_DELEGATE(FStandartDelegateSignature)
Can I bind the different functions to him or only one-to-one
relation? I'm really don't get any idea why this is so good?
If I want to interact with some Actor
, why I can just implement virtual void OnOverlap
and add all the logic at that point? What is the benefit from the declare the first delegate, and after that add this to the OnOverlap
.
Can somebody, please, describe one good example to close that gap because I have any idea why we really need to use delegates?