This all works fine but I don’t want to expose the delegate publicly thus I want to encapsulate it by adding a BindValidator() method to my component. What is the best method of doing this ?
As TheKaosSpectrum, the easiest way is just to return the delegate, if you’re just dead set on encapsulating the bind uobject call, then you have to make a method that takes in a function pointer that matches your delegate (or maybe use a TFunction)
I’m open to more solutions but what I don’t want to happen is that other objects can execute the function that is bound to the delegate so I thought that encapsulating the bindUObject function would prevent that from happening since they can’t get the delegate and call execute on it.
I’m trying to achieve something like the input component does where you can call a BindAxis function containing the delegate binding and some additional information.