Values not being assigned

Hey Community,

I think I may have discovered abit of a bug that I haven’t encountered in any of the previous iterations of the engine.

In my HUD class(.h) I have the following:

int Selection = 1;

However, this value is never assigned. Even when being assigned in the constructor. For some reason it is only updated to it’s proper value when I directly change it from the PlayerController.

I noticed the same problem with…

FVector Blue = FVector(0.451, 0.904, 1.0); 

Oddly this reports back as 0.0, 0.0, 0.0 – which is clearly not the case.

Hey Master Kyp-

For the int Selection variable, The editor cannot recognize a regular int, instead you’ll want to use either int32 or uint16. In the case of the FVector, this is something that has been seen and reported before, UE-26273 . If you are seeing the value not set after a hot reload you should be able to simply close and reopen the editor for the changes to appear.

Cheers