I have a character with a USensingComponent, I wanna use AddDynamic to bind a UFUNCTION to handle the event OnSeePawn in my C++ constructor. My class name is AGuard.

I create a BP inherit the class AGuard and build. The bound function (UFUNCTION) works fine. After I change the function name and build, the function not work.

If I bind the function in BeginPlay(), it works again.

p.s. I is not good at English …