Firstly, I have been able to recreate this bug in a fresh project.
If you create a custom enum
, and a custom struct
, using the enum
as a key and the struct
as a value, the default values of the struct
are ignored
Here is the set up:
The default values for NewUserDefinedStruct
are 5, and 5.4000, but, when printing, returns only zeros.
However, if you add a new member with said enum
value, it works perfectly fine, as such:
By dragging off the pin and using MakeNewUserDefinedStruct
it creates the default variables, so it isn’t two much of a pain, and there’s a few ways to compact everything with variables, or splitting structs instead of breaking them, to make it more clean and dense, or even create a function in a function library that can do this for you, but regardless, this is something I would like to be fixed.