UCameraComponent::OnRegister
#include "Camera/CameraComponent.h"
Access: public
Specifiers: virtualoverride
Description
UActorComponent override called when the camera component is registered with the world, used to set up the editor-only frustum visualization and proxy mesh.
Caveats & Gotchas
- • Runs every time the component is registered, including after being unregistered and re-registered (e.g. during construction script re-runs in the editor) — not just once at spawn.
- • If overridden in a subclass, Super::OnRegister() must be called or the in-editor frustum/camera-mesh visualization silently stops working.
Signature
virtual void OnRegister() override; Return Type
void Example
Override in a subclass C++
void UMyCameraComponent::OnRegister()
{
Super::OnRegister();
// Additional setup once registered with the world
} See Also
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?