UGameInstance::GetPrimaryPlayerUniqueId

Syntax

TSharedPtr < const FUniqueNetId > GetPrimaryPlayerUniqueId() const

Remarks

Get the unique id for the primary player on this machine (others are splitscreen children)

Returns

the unique id of the primary player on this machine

References

Module

Engine

Header

Runtime/Engine/Classes/Engine/GameInstance.h

Source

Runtime/Engine/Private/GameInstance.cpp