C++ Remove Default Camera

In the C++ Blank Template, a CameraActor spawns even though I have set the ViewTarget for the PlayerController in Blueprints. Where is this Camera coming from?

I am in the same boat and I believe it’s spawned by the PlayerCameraManager, which, in turn, is being created by the PlayerController. If it’s set to “None” in the PlayerController Class Defaults then the default PlayerCameraManager object is created. I tried subclassing this camera manager to see if I could stop it spawning the default CameraActor, but failed.

The PlayerCameraManager is spawned in PlayerController.cpp:933 in the PostInitializeComponents() method. This in turn calls PostInitializeComponents() in PlayerCameraManager.cpp which looks like it spawns a temporary CameraActor on line 701.

Are you concerned with where the camera is coming from or how to prevent it from spawning? Unfortunately I don’t know how to solve the latter myself,but it shouldn’t have any performance impact if it is not actively being used.

There is a variable bAutoManageActiveCameraTarget in APlayerController that is set to true by default. Im not exac