AActor::IsWithinNetRelevancyDistance

Determines whether or not the distance between the given SrcLocation and the Actor's location is within the net relevancy distance.

Windows
MacOS
Linux

References

Module

Engine

Header

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

Include

#include "GameFramework/Actor.h"

Source

/Engine/Source/Runtime/Engine/Private/ActorReplication.cpp

Syntax

bool IsWithinNetRelevancyDistance
(
    const FVector & SrcLocation
) const

Remarks

Determines whether or not the distance between the given SrcLocation and the Actor's location is within the net relevancy distance. Actors outside relevancy distance may not be replicated.

Returns

True if the actor is within net relevancy distance, false otherwise.

Parameters

Parameter

Description

SrcLocation

Location to test against.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss