I didn’t look to far into Elastic in and out, I just pulled out the value -=1 to get it to compile.
The basic issue I have found, is slate objects (SCompositeWidgets) are not Uobjects, therefore I can’t use your interface (extending from it is only possible from things that inherit from UObject). I think I would need to create a second interface without the GENERATED_INTERFACE_BODY but I’m not sure if that is possible or how much work that would mean. Otherwise, I could try to write my Slate Objects with the UWidgets that UMG use, but there isn’t really any documentation on using UMG C++ yet, and it seems I would be creating alot of unnecessary code. So I’m still trying to figure out how I should handle this.
edit:
Nope, going to be more work then I thought, as the parameters accept the object as a UObject in the first place, I’m just going have to find a way to either wrap my widgets in dummy u objects or something.
You’re right, you’d have to mickey-mouse some kind of interface solution. Why are you opting for Slate, though? Is there some functionality UMG doesn’t provide?