Navigation
API > API/Plugins > API/Plugins/GameplayCameras > API/Plugins/GameplayCameras/GameFramework
Inheritance Hierarchy
- USceneComponent
- UGameplayCameraComponent
References
| Module | GameplayCameras |
| Header | /Engine/Plugins/Cameras/GameplayCameras/Source/GameplayCameras/Public/GameFramework/GameplayCameraComponent.h |
| Include | #include "GameFramework/GameplayCameraComponent.h" |
Syntax
UCLASS (Blueprintable, MinimalAPI, ClassGroup=Camera, HideCategories=(Mobility, Rendering, LOD),
Meta=(BlueprintSpawnableComponent))
class UGameplayCameraComponent : public USceneComponent
Remarks
A component that can run a camera asset inside its own camera evaluation context.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TEnumAsByte< EAutoReceiveInput::Type > | AutoActivateForPlayer | If AutoActivate is set, auto-activates this component's camera for the given player. | |
| bool | bIsCameraCutNextFrame | ||
| TObjectPtr< UCameraAsset > | Camera | The camera asset to run. | |
| TObjectPtr< UGameplayCameraSystemHost > | CameraSystemHost | ||
| TSharedPtr< FGameplayCameraComponentEvaluationContext > | EvaluationContext | ||
| TObjectPtr< UStaticMesh > | PreviewMesh | ||
| TObjectPtr< UStaticMeshComponent > | PreviewMeshComponent |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UGameplayCameraComponent
(
const FObjectInitializer& ObjectInit |
Create a new camera component. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | ActivateCameraForPlayerController
(
APlayerController* PlayerController |
Activates the camera for the given player. | |
| void | ActivateCameraForPlayerIndex
(
int32 PlayerIndex |
Activates the camera for the given player. | |
| void | BeginPlay () |
||
| void | Deactivates the camera for the last player it was activated for. | ||
| void | EndPlay
(
const EEndPlayReason::Type EndPlayReason |
||
| bool | GetEditorPreviewInfo
(
float DeltaTime, |
||
| TSharedPtr< UE::Cameras::FCameraEvaluationContext > | Get the camera evaluation context used by this component. | ||
| FBlueprintCameraPose | Gets the initial camera pose for this component's camera evaluation context. | ||
| FBlueprintCameraVariableTable | Gets the initial camera variable table for this component's camera evaluation context. | ||
| APlayerController * | Get the player controller this component is currently activated for (if any). | ||
| void | OnComponentDestroyed
(
bool bDestroyingHierarchy |
||
| void | OnRegister () |
||
| void | OnUpdateTransform
(
EUpdateTransformFlags UpdateTransformFlags, |
||
| void | SetInitialPose
(
const FBlueprintCameraPose& CameraPose |
Sets the initial camera pose for this component's camera evaluation context. | |
| void | TickComponent
(
float DeltaTime, |
Typedefs
| Name | Description |
|---|---|
| FGameplayCameraComponentEvaluationContext |