I make a custom struct and assign default values to it's member floats, etc. When I use that in a Blueprint, the defaults work as expected. However, when I reference it as a local variable in a BP function, the defaults that I set are not there (floats, ints defaulting to 0, Bools defaulting to false, etc).
Simple repro steps below.

*Licensee bug report linked for my reference

Steps to Reproduce

1. Create a Custom Struct
2. Add a float with a default value (e.g. 100.0)
3. Add the CustomStruct to a Blueprint. Default value 100.0 works as expected
4. Create a function and add the CustomStruct as a local variable. Default value shows as 0.0

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-16717 in the post.

Login to Vote

ComponentUE - Gameplay - Blueprint
Target Fix4.9
Fix Commit2586354
CreatedJun 9, 2015
ResolvedJun 12, 2015
UpdatedApr 27, 2018