Because UFUNCTION doesn’t accept default values and requires the meta parameter “AutoCreateRefTerm” to make blueprint nodes able to accept no parameters.
Is there any way to get what I need in a single function to rule them all?
Edit: just tested with a USTRUCT as well and that seems to work too.
I think this really is the only way to do this. You’ll notice a lot of the blueprint equivalents for the native functions in the engine (the ones prefixed with K2_) initialize things to defaults as well before calling functions.
That doesn’t solve the issue. The problem is that to have default values in blueprints, so that you can leave the nodes empty, you need to use the meta descriptor “AutoCreateRefTerm”. This: