How to get active Camera object?

You might have to write a wrapper function yourself

// Look for the first active camera component and use that for the view
TInlineComponentArray<UCameraComponent*> Cameras;
GetComponents<UCameraComponent>(/*out*/ Cameras);

for (UCameraComponent* CameraComponent : Cameras)
{
	if (CameraComponent->bIsActive)
	{
		CameraComponent->GetCameraView(DeltaTime, OutResult);
		return;
	}
}

I found this in Actor.h under CalcCamera function. You can use this help to write your wrapper function

1 Like