I’ve followed the Player Input and Pawns tutorial (Quick Start Guide to Player Input in Unreal Engine CPP | Unreal Engine 5.2 Documentation) however when I compile it, it returns identifier “CurrentVelocity” is undefined error. My code is the same as the tutorial minus the growing and shrinking code.
Player Input and Pawns tutorial identifier "CurrentVelocity" is undefined error
Well can you post your “MyPawn.h” code? According to that tutorial you should define “CurrentVelocity” in your header in step 3.
Just checked, I was missing “CurrentVelocity” in the header. My Bad. Thank You.