I am having trouble binding Multicast Delegate.
This is my code for a Actor Component. On Register I try to Bind and compile errors happen.
.cpp
void UAVPawnComponent::OnRegister()
{
Super::OnRegister();
PawnOwner = GetOwner<APawn>();
PawnOwner->ReceiveRestartedDelegate.AddDynamic(this, &ThisClass::OnRestartedDelegate);
//PawnOwner->ReceiveControllerChangedDelegate.AddDynamic(this, &ThisClass::OnPlayerControllerChanges);
}
.h
UFUNCTION()
virtual void OnRestartedDelegate(APawn * Pawn);
Output Logs.
Please help me. I have been scratching my head on this
