Moving a camera while paused

Hi, everyone

Having some troubles with getting my camera move while the game is on pause. Tried to set every camera in the scene “Tickable when paused” along with the capsule component and so on - no use. What am i doing wrong? I need a camera to be able to roam around the scene while everything is on pause and frozen nice and still

Have a look at this answer, this is a different approach that might solve your problem.

I also have this problem and that didn’t work for me. Ultimately I think the problem is it won’t accept input while game is paused. Allowing the inputs to tick makes no difference. I can look left and right using Gear VR, just not up and down.

So this does to appear to solve my problem for now. I was still trying to set game to paused and use a custom time dilation. I implemented it even more simply, I just replaced the set game paused node to set time dilation and its work for me. Set to 0 on pause and 1 on unpause.

Have you enabled Use Pawn Control Rotation?

Just call APlayerController::UpdateCameraManager() function when paused.

I made an actor for calling that function.

    PrimaryActorTick.bCanEverTick = true;
    PrimaryActorTick.bStartWithTickEnabled = false; // start with disabled
    PrimaryActorTick.bTickEvenWhenPaused = true; // tick when paused

AMyActor::Tick(float DeltaTime)

And Turn on AMyActor’s tick function when you pause game.

UGameplayStatics::SetGamePaused(GetWorld(), true);
1 Like

Thanks, but i was looking for a BP solution - unfortunately I have no expercience in coding