You probably need to make the “YourFunction” have UFUNCTION() above it. Otherwise the delegate system can’t access it.