How to use delegates as parameter

My bad, I thought in order to use CreateUObject() you needed the UFUNCTION() preprocessor. I guess you only need it for CreateUFUnction()