RealDocs

UCameraComponent::NotifyCameraCut

function Engine Since 4.0
#include "Camera/CameraComponent.h"
Access: public Specifiers: virtual

Description

Notifies the camera component that a hard camera cut occurred so dependent systems can reset interpolation instead of smoothing from the previous view.

Caveats & Gotchas

  • Only forwards to ACameraActor::NotifyCameraCut when the component's owner is an ACameraActor — on the far more common case of a camera component attached to a Pawn or Character, calling this does nothing by itself.
  • Not called automatically on every view target change — camera managers must call it explicitly to distinguish a hard cut from a smooth blend.

Signature

virtual void NotifyCameraCut()

Return Type

void

Example

Notify a hard cut C++
void AMyCameraManager::DoHardCut()
{
	if (ACameraActor* CamActor = Cast<ACameraActor>(GetViewTarget()))
	{
		CamActor->GetCameraComponent()->NotifyCameraCut();
	}
}

Version History

Introduced in: 4.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.