nanos-world / issues

Issue Tracker for nanos world
9 stars 1 forks source link

[Blueprint / Widget] Passing nil arguments in `:CallBlueprintEvent` is broken #998

Closed NegativeNameNGT closed 6 months ago

NegativeNameNGT commented 6 months ago

Prerequisites

Your Environment

Description

Passing nil parameters causes a type error. image

Steps to reproduce the behavior

  1. Create a blueprint with a function containing a string type
  2. Call the function in nanos-world with a nil parameter for the string arg

Expected behavior

It should use the default value of the argument

Actual behavior

It causes a type error

gtnardy commented 6 months ago

unfortunately I didn't found a way to provide this behavior from C++ to Blueprints, it seems default values are a blueprint thing only, i.e. the default values only appear in the blueprint graph as default parameters when calling an event and I can't really access them when calling it from code (c++) to blueprints to get the defaults