Local variables in blueprints are evaluated wrong (under some circumstances)

What

The value of a local function variable in a blueprint is not evaluated correct (at least for this case)

Reproduce

I have made two identical variables (same type and value, one at actor scope, one local scope), but they evaluate to not equal (see attached image)

Hi splitDEV,

  • Does this occur in a clean, blank project with no additional content or is this limited to one project?
  • Are the two variables within two different classes? If so, have you populated the variable from the other actor or is it registering a null value?
  • Have you tried running a print string on the individual variables to see what they are populated as?

Hi, thanks for the quick reply

  • The project is a blank project, just created for reporting this bug (Blueprint ThirdPerson), but it has happend in other projects too
  • The variables are in the same actor/class and setup exactly the same (they are both set via “Default Value”, not from extern, see image)
  • It seems the local scoped variable is null, although it is set via “Default Value” to “SphereComponent”-class (see attached image, it prints false)

69087-bug_1_append.png

Hi splitDEV,

I was able to reproduce this and have entered a bug report, UE-24048, to be assessed by the development staff.