How to lock rotation of camera or pause game in c++
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:
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: https://wiki.unrealengine.com/First_Person_Shooter_C%2B%2B_Tutorial
Follow this question
Once you sign in you will be able to subscribe for any updates here