Other Posts

Returning to Player Camera after Level Sequence Play

If you want to transit camera back to player seamlessly after or during level sequence, you can call SetViewTargetWithBlend to do that, with a player as new target. Just make sure you put the following settings right:

  1. Tracks of camera cuts and camera actor are set to keep state when finished, otherwise camera will roll back to initial state.

  2. If you are switching camera in level sequence (not after), make sure to crop length of camera cuts so that it ends earlier than SetViewTargetWithBlend. Camera cuts track has a higher priority than SetViewTargetWithBlend, active camera cuts will suspend SetViewTargetWithBlend.

  3. Don’t change view target’s location or rotation during SetViewTargetWithBlend, that will cause SetViewTargetWithBlend to immediately use that new position or rotation.

  4. Similar if you enabled “Camera Lag” and “Camera Rotation Lag” on SpringArmComponent, make sure to give player camera enough time to arrive at new location or rotation before calling SetViewTargetWithBlend. Otherwise SpringArmComponent and SetViewTargetWithBlend will conflict with each other, cause camera to move back and forth.