After this lesson I get a log warning almost every frame:
LogScript:Warning: Switch statement failed to match case for index property Temp_byte_Variable
PlayerUI_BP_C /Engine/Transient.UnrealEdEngine_0:GameInstance_16.PlayerUI_BP_C_2
Function /Game/UI/PlayerUI_BP.PlayerUI_BP_C:Get_AimPoint_ColorAndOpacity:01A6
It’s not every frame though. I logged out in the player UI blueprint and it shows that every once in a while the FiringStatus enum is being read properly, but most of the time it’s not and is returning none.
What’s strange is that instead of defaulting to red, it just disappears instead and get this warning.
My code is exactly the same as the class code (although I’m using 4.13.1).
My fire status and results are correct in C++, but the blueprint doesn’t seem to be getting the information correctly. It always has a tank aiming component reference, and sometimes changes the color and flashes it on the screen.
What could be a cause of this?