4.9.2: Function Lib: Default values are always strings?

Default values inside of functions libraries are always shown as strings (even for booleans, vectors, rotators etc.), which just doesn’t make any sense and results in not being able to set a default value for most datatypes.


Debugging values also doesn’t work (no value shown, only their name):


It seems possible to set values for strings, and booleans (‘true’/‘false’) but floats are always reverted to 0.

Hi ,

Thanks for report. We’re aware of this issue with inputs: default value was intended to be a shortcut to entering some arcane syntax, and doesn’t make any sense for arrays. I believe this is true for any Custom Event or Function, not exclusively those in Function Libraries. We have a report to track this (UE-11189) but it’s not very high priority.

I see…

So, is there any documentation to this syntax or does this just mean that it’s currently not possible to set defaults (especially floats) in function libraries?

No documentation, and I’m not confident anyone remembers anymore. I wasn’t able to find anyone who does, anyway.

I’d need to see what you want to achieve, specifically, to find a workaround, but that’s correct; currently inputs aren’t designed to use default values in Blueprints.

Thank you. Guess I’ve to live with that then.