Navigation
API > API/Runtime > API/Runtime/Engine
Simple variant wrapper to hold a generic or Iris network object ID (FNetworkGUID or FNetRefHandle). Intended for transitioning systems that were using FNetworkGUID directly to Iris, not intended for general use.
| Name | FNetIDVariant |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Public/Net/NetIDVariant.h |
| Include Path | #include "Net/NetIDVariant.h" |
Syntax
class FNetIDVariant
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Constructs a variant holding an FEmptyID | Net/NetIDVariant.h | ||
FNetIDVariant
(
FNetworkGUID NetGUID |
Net/NetIDVariant.h | ||
FNetIDVariant
(
FNetRefHandle NetRefHandle |
Net/NetIDVariant.h |
Structs
| Name | Remarks |
|---|---|
| FEmptyID | Placeholder to represent empty/unknown type. Always considered invalid. |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FVariantType | TVariant< FEmptyID, FNetworkGUID, FNetRefHandle > | Net/NetIDVariant.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Variant | FVariantType | Net/NetIDVariant.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FVariantType GetVariant() |
Returns the stored TVariant | Net/NetIDVariant.h | |
bool IsValid() |
Returns whether the stored ID or handle is valid | Net/NetIDVariant.h | |
FString ToString() |
Output to string | Net/NetIDVariant.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool operator==
(
const FNetIDVariant& RHS |
Equality comparison | Net/NetIDVariant.h |