Problems creating a callback from an ActorComponent to an Actor. Tried binding delegates as SharedPointers, and Raw. Also tried C++ function pointers, memory looks good
Hey, as the title says, I've tried creating a callback using UE4 delegates, however, before that I tried using a normal C++ function pointer. The memory is always valid when trying to execute the callback pointer, but it just won't run.
Vital declarations in my header
Setting up the Callback
Trying to execute the delegate
Any ideas? Would be greatly appreciated!
I solved this after some time, and now I feel even more stupid. First correction was to BindUObject instead of SP or Raw, which is an easy miss if you're new to UE4 delegates. However, after I fixed that I got another issue, and after some time I realised I hadn't included the TriggerActor anywhere, it was just forward declared, hence why it wasn't working ...
answered Jan 20 '19 at 05:01 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here