AActor::K2_OnBecomeViewTarget
#include "GameFramework/Actor.h"
Access: public
Specifiers: UFUNCTIONBlueprintImplementableEvent
Description
Blueprint event fired when a PlayerController sets this actor as its view target. Implement this in a Blueprint actor to react without overriding BecomeViewTarget in C++.
Caveats & Gotchas
- • This is a BlueprintImplementableEvent — do not provide a C++ body. The implementation is in the Blueprint graph. If you need C++ behavior on BecomeViewTarget, override BecomeViewTarget directly (and ensure you call Super to trigger this event).
- • The event fires on both the server and locally controlled clients but not on simulated proxies.
Signature
void K2_OnBecomeViewTarget( class APlayerController* PC ) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| PC | class APlayerController* | The PlayerController that now has this actor as its view target. | — |
Return Type
void Example
Blueprint: play a camera enter animation text
Event OnBecomeViewTarget (PC: PlayerController)
-> Play Animation on CameraArmComponent (Anim: CameraEnterAnim) Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?