Better approach to returning mouse rotation after click

Powill
Thu, 09 Sep 2021 02:42:50 +0000
Character & Animation

I’ve noticed that using the showMouseCursor function (set to true) from the player controller disables mouse rotation. A solution I found is using setInputModeGameOnly on the event tick (in the ThirdPersonCharacter from the ThirdPerson template). This is hurting my frame rate. Is there a better way to regain the mouse rotation for camera movement? I’ve tried using the setFocusToGameViewport and setInputModeGameOnly in EventBeginPlay, but that is not fixing the rotation problem.

2 posts - 1 participant