View camera then unable to return to player camera

Hi,

I’ve got a camera that spawns on an event, when the event is triggered the camera is switched and works okay (except for some weird cinematic bars I don’t want) the issue being, I’m not sure how to switch back to the player camera.

  1. Camera is spawned and switches to that camera

  2. Not sure how to switch back to player camera (below doesn’t work)

Demonstration

Try ‘get player character’ for the new view target (now it’s get camera manager)

2 Likes

Your solution doesn’t work, because during 2) your Camera Manager is managing spawned Camera Actor, not your previous one - so you are actually saying, just use the same camera as it is now.
As mentioned above, just GetPlayerCharacter or GetPlayerPawn if your previous camera is in pawn.

Sorry I forgot to update this(updated a different post by accident), I ended up doing the following and it works

Great that you found the solution. I think you event don’t need that cast, just connect GetPlayerPawn to NewViewTarget.

1 Like

Your absolutely right, thanks! the less Cast to’s I can do the better! :slight_smile: