FNetworkObjectList::FindOrAdd

Attempts to find the Actor's [FNetworkObjectInfo](API\Runtime\Engine\Engine\FNetworkObjectInfo).

Windows
MacOS
Linux

Deprecated

  • Please use the FindOrAdd which takes a net driver instead.

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/NetworkObjectList.h

Include

#include "Engine/NetworkObjectList.h"

Source

/Engine/Source/Runtime/Engine/Private/NetworkObjectList.cpp

Syntax

TSharedPtr< FNetworkObjectInfo > * FindOrAdd
(
    AActor *const Actor,
    const FName NetDriverName,
    bool * OutWasAdded
)

Remarks

Attempts to find the Actor's FNetworkObjectInfo. If no info is found, then the Actor will be added to the list, and will assumed to be active.

If the Actor is dormant when this is called, it is the responsibility of the caller to call MarkDormant immediately.

If info cannot be found or created, nullptr will be returned.

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