ULocalPlayer::GetPreferredUniqueNetId

Retrieves the preferred unique net id.

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/LocalPlayer.h

Include

#include "Engine/LocalPlayer.h"

Source

/Engine/Source/Runtime/Engine/Private/LocalPlayer.cpp

Syntax

virtual FUniqueNetIdRepl GetPreferredUniqueNetId() const

Remarks

Retrieves the preferred unique net id. This is for backwards compatibility for games that don't use the cached unique net id logic

Returns

unique Id associated with this player