FNetViewer

Stores information on a viewer that actors need to be checked against for relevancy

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

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

Include

#include "GameFramework/WorldSettings.h"

Syntax

struct FNetViewer

Remarks

Stores information on a viewer that actors need to be checked against for relevancy

Variables

Name Description

Public variable

TObjectPtr< UNe...

 

Connection

Public variable

TObjectPtr< cla...

 

InViewer

The "controlling net object" associated with this view (typically player controller)

Public variable

FVector

 

ViewDir

Direction the viewer is looking

Public variable

FVector

 

ViewLocation

Where the viewer is looking from

Public variable

TObjectPtr< cla...

 

ViewTarget

The actor that is being directly viewed, usually a pawn. Could also be the net actor of consequence

Constructors

Name Description

Public function

FNetViewer()

Public function

FNetViewer

(
    AController* InController
)

For use by replication graph, connection likely null

Public function

FNetViewer

(
    UNetConnection* InConnection,
    float DeltaSeconds
)