Aim Crosshair now flashes, Switch Statement failed to match case

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?

Resetting the project fixed the issue… closing, sorry. Sigh…

Also I noticed that leaving unreal open for a long time causes massive memory build up. I was up to 95% system memory usage.

I’m going through this course 8 hours a day on the weekends atm, which seems to cause some issues! (I’ll try to close down to commit more often)

Privacy & Terms