Hi
Sorry if this question has an obvious answer, I am still new to c++ and UE4 programming.
I get rotation through this code in my player controller:
InputComponent->BindAxis("Turn", this, &AGAME_Character::AddControllerYawInput); InputComponent->BindAxis("LookUp", this, &AGAME_Character::AddControllerPitchInput);
How can I lock the rotation of the camera when I have opened my c++ based inventory widget?
Or is it possible to pause the game and still have UI functionality? (And then unpause by pressing the inventory button on the keyboard again)
I have locked movement with a bool in the movement code. The camera movement is in Pawn.cpp but, is there a way to lock rotation without editing engine code inside of c++, so that I can update the engine version and use the code in other projects easily?
The player controller code is based upon: A new, community-hosted Unreal Engine Wiki - Announcements - Epic Developer Community Forums