Navigation
API > API/Runtime > API/Runtime/Engine
Stores information on a viewer that actors need to be checked against for relevancy
| Name | FNetViewer |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Classes/GameFramework/WorldSettings.h |
| Include Path | #include "GameFramework/WorldSettings.h" |
Syntax
USTRUCT ()
struct FNetViewer
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FNetViewer () |
GameFramework/WorldSettings.h | ||
FNetViewer
(
AController* InController |
For use by replication graph, connection likely null | GameFramework/WorldSettings.h | |
FNetViewer
(
UNetConnection* InConnection, |
GameFramework/WorldSettings.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Connection | TObjectPtr< UNetConnection > | GameFramework/WorldSettings.h | ||
| InViewer | TObjectPtr< class AActor > | The "controlling net object" associated with this view (typically player controller) | GameFramework/WorldSettings.h | |
| ViewDir | FVector | Direction the viewer is looking | GameFramework/WorldSettings.h | |
| ViewLocation | FVector | Where the viewer is looking from | GameFramework/WorldSettings.h | |
| ViewTarget | TObjectPtr< class AActor > | The actor that is being directly viewed, usually a pawn. Could also be the net actor of consequence | GameFramework/WorldSettings.h |