AController::GetViewTarget

Get the actor the controller is looking at

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

AController::GetViewTarget()

APlayerController::GetViewTarget()

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/Controller.h

Include

#include "GameFramework/Controller.h"

Source

/Engine/Source/Runtime/Engine/Private/Controller.cpp

Syntax

virtual AActor * GetViewTarget() const

Remarks

Get the actor the controller is looking at