RealDocs

AActor::K2_OnEndViewTarget

function Engine Blueprint Since 4.0
#include "GameFramework/Actor.h"
Access: public Specifiers: UFUNCTIONBlueprintImplementableEvent

Description

Blueprint event fired when a PlayerController stops using this actor as its view target. Implement in Blueprint to react to camera handoff without C++ overrides.

Caveats & Gotchas

  • This is a BlueprintImplementableEvent with no C++ body. Triggering it requires that BecomeViewTarget's Super call chain executes correctly — if any C++ subclass skips Super::EndViewTarget, this event will not fire.
  • The event can fire during actor cleanup. If you reference other actors or components inside this event, validate with IsValid() before use.

Signature

void K2_OnEndViewTarget( class APlayerController* PC )

Parameters

Name Type Description Default
PC class APlayerController* The PlayerController that no longer has this actor as its view target.

Return Type

void

Example

Blueprint: stop a looping camera effect on view exit text
Event OnEndViewTarget (PC: PlayerController)
  -> Stop Particle System on CameraEffectComponent

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.