Hi. Sometimes things on manuals just appear out of nowhere and you don’t know where to find that:
Where is or how do you get to: APawnWithCamera::SetupPlayerInputComponent
In this tutorial:
Thank you. God bless. Proverbs 31
Hi. Sometimes things on manuals just appear out of nowhere and you don’t know where to find that:
Where is or how do you get to: APawnWithCamera::SetupPlayerInputComponent
In this tutorial:
Thank you. God bless. Proverbs 31
APawnWithCamera::SetupPlayerInputComponent is automatically added in your .h and .cpp file when creating a Pawn class. In case you deleted it or sometimes when adding subclasses this code isn’t automatically generated, but you can add it yourself.
virtual void SetupPlayerInputComponent(class UInputComponent* PlayerInputComponent) override;
Add this to your header and do all the other stuff in .cpp.
Cheers <3