Adding a function to FActorDestroyedSignature OnDestroyed

I have a function


void OnActorDelete();

I want to bding that function to the


FActorDestroyedSignature OnDestroyed

delegate present in actor.h

I cannot bind it through this


.Add(this, &TestActor::OnActorDelete);

The delegate has been declared something like this


DECLARE_DYNAMIC_MULTICAST_DELEGATE(FActorDestroyedSignature);

Swap out


.Add(this, &TestActor::OnActorDelete);

With


.AddDynamic(this, &TestActor::OnActorDelete);

Worked… The structure didn’t have any function called .AddDynamic so I didn’t use that.