# spectator position in replay

**URL:** <https://forums.unrealengine.com/t/spectator-position-in-replay/776481>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [February 22, 2023, 5:09pm UTC](https://forums.unrealengine.com/t/spectator-position-in-replay/776481 "2023-02-22T17:09:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![UnrealDev3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@UnrealDev3](https://forums.unrealengine.com/u/UnrealDev3)\
**Post date:** [February 22, 2023, 5:09pm UTC](https://forums.unrealengine.com/t/spectator-position-in-replay/776481/1 "2023-02-22T17:09:20Z")

</div>

Hi,  
I am using the replay infrastructure and would like to change the spectator position during replay, to be the same as the camera position during record (e.g. following my main character).  
Is there a way to do this in blueprint? or in c++?  
Thanks a lot

---

<div class="post-metadata">

**Author:** ![EliasWick](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eliaswick/32/1175208_2.png) [@EliasWick](https://forums.unrealengine.com/u/EliasWick)\
**Post date:** [February 22, 2023, 5:44pm UTC](https://forums.unrealengine.com/t/spectator-position-in-replay/776481/2 "2023-02-22T17:44:04Z")

</div>

You can have an additional camera on the player, or use the existing player camera. When you are spawning as the spectator pawn you can simply set the camera view to bind to an existing player. There are various ways to set this, but I usually use the **Set View Target with Blend**.

---

<div class="post-metadata">

**Author:** ![UnrealDev3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@UnrealDev3](https://forums.unrealengine.com/u/UnrealDev3)\
**Post date:** [March 1, 2023, 12:53pm UTC](https://forums.unrealengine.com/t/spectator-position-in-replay/776481/3 "2023-03-01T12:53:13Z")

</div>

Thanks for reply. I was calling Set View Target with Blend after a node where initiate the Replay (i call a method which inherits the GameInstance Replay) and this did not work. I now spawn the Set View Target with Blend from a timer and it is working.

---

<div class="post-metadata">

**Author:** ![JediKnightChan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jediknightchan/32/1156960_2.png) [@JediKnightChan](https://forums.unrealengine.com/u/JediKnightChan)\
**Post date:** [August 2, 2023, 10:26pm UTC](https://forums.unrealengine.com/t/spectator-position-in-replay/776481/4 "2023-08-02T22:26:04Z")

</div>

This thread is hilarious about people who don’t want to properly explain what they do or share a screenshot with blueprint code

---

<div class="post-metadata">

**Author:** ![JediKnightChan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jediknightchan/32/1156960_2.png) [@JediKnightChan](https://forums.unrealengine.com/u/JediKnightChan)\
**Post date:** [August 2, 2023, 10:58pm UTC](https://forums.unrealengine.com/t/spectator-position-in-replay/776481/5 "2023-08-02T22:58:44Z")

</div>

Recording replays in player controller (I use one function from Lyra to get list of them, but it can be done in template project by specifying the name to record into and then to read it from, see console commands in [Replay System | Unreal Engine 4.27 Documentation](https://docs.unrealengine.com/4.27/en-US/TestingAndOptimization/ReplaySystem/))

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/6/1/561fcb9366d2da759e4803115f7e6aa61513a0c8.jpeg)

To change camera, I use event in game instance because it’s persistent. Camera modes is also a thing from Lyra, but probably with standard camera component you’ll only need to call SetViewTargetWithBlend.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/9/9/c993f2a7c2da697dca7426d93692815a76e3e5b0.jpeg)

In the future, I’m going to move “switch camera” event from game instance into widget, along with stop, play, increase decrease speed buttons there will be change pawn button.
