I'm trying to create an EventContainer which can contain custom delegate (without specifing is it e.g. FExecuteEvent). The problem is with a proper type of it. I already tried with IDelegateInstance, TBaseDelegate and TBaseDynamicMulticastDelegate but importing them in multiple ways doesn't work.
Currently my function looks like this:
And the import list:
And the error:
Now, is there any way to make delegate be stored as such variable?
Thanks for help Shadowriver and Steve, my misconception is explained in comments.
answered Feb 22 '16 at 11:27 AM
This error means you using type that is not supported by reflection system
I dont see any use of TDelegateBase* in engine, i think it should be FDelegate and not pointer of it (reflection system can't handle pointers other then UObjects i think), try around those
As a last resort you can remove UPROPERTY() which will remove varable from reflection system and won't be parsed by UHT (thing that gives you error) and make nodes that operate this delegate. Removing something from reflection system also means it won't be managed by UE4 memory management systems.
Follow this question
Once you sign in you will be able to subscribe for any updates here