UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FTViewTarget Struct Reference

#include <PlayerCameraManager.h>

Public Member Functions

class APlayerStateGetPlayerState () const
 
ENGINE_API void SetNewTarget (AActor *NewTarget)
 
ENGINE_API class APawn * GetTargetPawn () const
 
ENGINE_API bool Equal (const FTViewTarget &OtherTarget) const
 
 FTViewTarget ()
 
ENGINE_API void CheckViewTarget (APlayerController *OwningController)
 

Public Attributes

TObjectPtr< class AActorTarget
 
struct FMinimalViewInfo POV
 

Protected Attributes

TObjectPtr< class APlayerStatePlayerState
 

Detailed Description

A ViewTarget is the primary actor the camera is associated with.

Constructor & Destructor Documentation

◆ FTViewTarget()

FTViewTarget::FTViewTarget ( )
inline

Member Function Documentation

◆ CheckViewTarget()

void FTViewTarget::CheckViewTarget ( APlayerController OwningController)

Make sure ViewTarget is valid

◆ Equal()

bool FTViewTarget::Equal ( const FTViewTarget OtherTarget) const

◆ GetPlayerState()

class APlayerState * FTViewTarget::GetPlayerState ( ) const
inline

◆ GetTargetPawn()

APawn * FTViewTarget::GetTargetPawn ( ) const

◆ SetNewTarget()

void FTViewTarget::SetNewTarget ( AActor NewTarget)

Member Data Documentation

◆ PlayerState

TObjectPtr<class APlayerState> FTViewTarget::PlayerState
protected

PlayerState (used to follow same player through pawn transitions, etc., when spectating)

◆ POV

struct FMinimalViewInfo FTViewTarget::POV

Computed point of view

◆ Target

TObjectPtr<class AActor> FTViewTarget::Target

Target Actor used to compute POV


The documentation for this struct was generated from the following files: