# GetActiveCameraComponent from LevelSequencePlayer return null in 5.4

**URL:** <https://forums.unrealengine.com/t/getactivecameracomponent-from-levelsequenceplayer-return-null-in-5-4/1836700>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [May 2, 2024, 3:26pm UTC](https://forums.unrealengine.com/t/getactivecameracomponent-from-levelsequenceplayer-return-null-in-5-4/1836700 "2024-05-02T15:26:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![xhn](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xhn](https://forums.unrealengine.com/u/xhn)\
**Post date:** [May 2, 2024, 3:26pm UTC](https://forums.unrealengine.com/t/getactivecameracomponent-from-levelsequenceplayer-return-null-in-5-4/1836700/1 "2024-05-02T15:26:59Z")

</div>

GetActiveCameraComponent from LevelSequencePlayer return null in 5.4 but in 5.3 its work fine.

---

<div class="post-metadata">

**Author:** ![Marc.Ratloop](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Marc.Ratloop](https://forums.unrealengine.com/u/Marc.Ratloop)\
**Post date:** [May 13, 2024, 4:18pm UTC](https://forums.unrealengine.com/t/getactivecameracomponent-from-levelsequenceplayer-return-null-in-5-4/1836700/2 "2024-05-13T16:18:58Z")

</div>

Same issue here, we used GetActiveCameraComponent() to do some procedural adjustment on the active sequencer camera but it’s not cached anymore. From the source you can see ULevelSequencePlayer::OnCameraCutUpdated has been changed and the CachedCameraComponent is never set anymore.

I fixed it by updating the engine, in LevelSequencePlayer.cpp, added the line:

```auto

void ULevelSequencePlayer::OnCameraCutUpdated(const UE::MovieScene::FOnCameraCutUpdatedParams& Params)
{
	// this var is not set anymore in 5.4, so we couldn't access the current camera (GetActiveCameraComponent)
	CachedCameraComponent = Params.ViewTargetCamera;

```

If you don’t build the engine from source I suspect the only fix is to retrieve the active camera through another means, like the viewport.

---

<div class="post-metadata">

**Author:** ![xhn](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xhn](https://forums.unrealengine.com/u/xhn)\
**Post date:** [May 13, 2024, 5:20pm UTC](https://forums.unrealengine.com/t/getactivecameracomponent-from-levelsequenceplayer-return-null-in-5-4/1836700/3 "2024-05-13T17:20:05Z")

</div>

I bind to ULevelSequencePlayer event OnCameraCut

---

<div class="post-metadata">

**Author:** ![Max.Chen](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/max.chen/32/1194502_2.png) [@Max.Chen](https://forums.unrealengine.com/u/Max.Chen)\
**Post date:** [May 13, 2024, 5:22pm UTC](https://forums.unrealengine.com/t/getactivecameracomponent-from-levelsequenceplayer-return-null-in-5-4/1836700/4 "2024-05-13T17:22:49Z")

</div>

Thanks for the report. I filed a bug and it will be made publicly visible in the next day or so. You can follow that bug to check for updates:

> **[The Unreal Engine Issues and Bug Tracker](https://issues.unrealengine.com/issue/UE-215014)**
>
> Welcome to the Unreal Engine Issue and Bug Tracker. You can check the status of an issue and search for existing bugs. See latest bug fixes too.

---

<div class="post-metadata">

**Author:** ![Dringus\_Master](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dringus\_Master](https://forums.unrealengine.com/u/Dringus_Master)\
**Post date:** [September 6, 2024, 4:20am UTC](https://forums.unrealengine.com/t/getactivecameracomponent-from-levelsequenceplayer-return-null-in-5-4/1836700/5 "2024-09-06T04:20:08Z")

</div>

It’s still null when camera cuts are disabled. I was using that functionality to do camera blending and camera effects between gameplay and sequencer camera
