Camera Mode Trigger
An actor that triggers switching of FlexiCam camera modes when target actor enters or exits its volume.
Key Features
-
Uses a
UBoxComponentas a trigger volume to detect overlapping actors -
Automatically sets the camera mode on overlapping actors that implement the
IFlexiCamInterface -
Resets camera mode to default when actors leave the trigger volume
Components
TriggerVolume (UBoxComponent): The box collision volume that detects overlaps and triggers camera mode changesEditorIcon (UBillboardComponent, editor only): Visual representation in editor to mark trigger position
Properties
CameraModeClass (TSubclassOf<UFlexiCameraMode>): The camera mode class to activate when an actor enters the trigger
Methods
GetCameraModeManagerComponent(AActor* Actor): Helper that gets theUFlexiCameraModeManagerComponentfrom an actor implementingIFlexiCamInterface
UFlexiCameraModeManagerComponent* GetCameraModeManagerComponent(AActor* Actor) const;
Usage
- Place
AFlexiCameraModeTriggeractors in the level with box collision defining the area - Set the
CameraModeClassto the desired FlexiCam mode to activate inside the trigger - Ensure that player or relevant actors implement
IFlexiCamInterface - When such an actor overlaps the trigger, the camera mode switches; when it leaves, it resets to default