Files
ChildHood/Source/ChildHood/Interaction/PushCameraActor.h
T

34 lines
922 B
C++
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// ChildHood Project - 推镜用临时摄像机
// 对应技术方案: docs/technical/交互系统-技术方案.md 第3节(类设计)
// 职责:极简 Actor,仅持有一个 UCameraComponent,供 SetViewTargetWithBlend 使用
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "PushCameraActor.generated.h"
class UCameraComponent;
/**
* APushCameraActor
*
* 交互系统推镜时使用的临时摄像机 Actor。
* 由 InteractionManager 在 BeginPlay 中 Spawn,随 Character 生命周期。
* InteractionManager 在推镜时设置其 Location/Rotation,
* 然后通过 PlayerController::SetViewTargetWithBlend 切换 ViewTarget。
*/
UCLASS()
class APushCameraActor : public AActor
{
GENERATED_BODY()
public:
APushCameraActor();
/** 推镜摄像机组件 */
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "Components")
UCameraComponent* CameraComp;
};