Blueprint Function Library Bug: Connecting function inputs resets default input values

Hi,

I noticed following issue:

  1. Create a Blueprint Function Library
  2. Add a new function to that library (in my example “MyFunction”)
  3. Create 2 inputs for that function (in my example 2 floats; one named “FloatWithDefault” and the other “FloatWhithDefaultConnected”)
  4. Setup Default values for both inputs (in my example 1)
  5. Connect the input of “FloatWithDefaultConnected” to another node that has a float input (in my example “RandomFloatInRange” but it doesn’t matter which one you choose). Leave “FloatWithDefault” unconnected.
  6. Compile and save the function library
  7. Open another Blueprint (like the Level Blueprint) and call your function from the library
  8. You will notice that the default value of the “FloatWithDefault” is still 1 while “FloatWithDefaultConnected” has turned to 0

Expected behavior: Both default values should keep their default settings.

Hey polygon,

I have reproduced your issue and have entered a bug report which you can track using the link below:

Have a great day