But I dont know the proper way to add any delegate in CPP, it seems that I should call Add() or AddUnique(), but the parameter required is confusing me. It requires ‘TScriptDelegate’ which I cannot figure out how to construct.
For dynamic delegates there is a macro named AddDynamic with params ContextObject(usually passing this) & UFunction pointer (usually passed like &ASomeClass::OnSomeFunction as said in other comment)
But. If your delegate need no being exposed to bp, then it’s better to use native (non-dynamic) delegates, as they have way more ways to interact with cpp. So your code will looks like: