Navigation
API > API/Runtime > API/Runtime/Core
Implements a globally unique identifier.
| Name | FGuid |
| Type | struct |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/Guid.h |
| Include Path | #include "Misc/Guid.h" |
Syntax
struct FGuid
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Misc/Guid.h | |||
constexpr FGuid
(
uint32 InA, |
Creates and initializes a new GUID from the specified components. | Misc/Guid.h | |
constexpr FGuid () |
Default constructor. | Misc/Guid.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| A | uint32 | Private: | Misc/Guid.h | |
| B | uint32 | Holds the second component. | Misc/Guid.h | |
| C | uint32 | Holds the third component. | Misc/Guid.h | |
| D | uint32 | Holds the fourth component. | Misc/Guid.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AppendString
(
FUtf8StringBuilderBase& Builder, |
Misc/Guid.h | ||
void AppendString
(
FWideStringBuilderBase& Builder, |
Misc/Guid.h | ||
void AppendString
(
FAnsiStringBuilderBase& Builder, |
Appends this GUID to the string builder using the specified format. | Misc/Guid.h | |
void AppendString
(
FString& Out, |
Converts this GUID to its string representation using the specified format. | Misc/Guid.h | |
bool ExportTextItem
(
FString& ValueStr, |
Exports the GUIDs value to a string. | Misc/Guid.h | |
bool ImportTextItem
(
const TCHAR*& Buffer, |
Imports the GUIDs value from a text buffer. | Misc/Guid.h | |
void Invalidate () |
Invalidates the GUID. | Misc/Guid.h | |
bool IsValid () |
Checks whether this GUID is valid or not. | Misc/Guid.h | |
| Misc/Guid.h | |||
bool Serialize
(
FStructuredArchive::FSlot Slot |
Misc/Guid.h | ||
FString ToString
(
EGuidFormats Format |
Converts this GUID to its string representation. | Misc/Guid.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void AutoRTFMAssignFromOpenToClosed
(
FGuid& Closed, |
Allows a FGuid to be returned from AutoRTFM::Open(). | Misc/Guid.h | |
| Returns a GUID which is a combinationof the two provided ones. | Misc/Guid.h | ||
static FGuid NewDeterministicGuid
(
FStringView ObjectPath, |
Create a guid by hashing the given path; this guid will be deterministic when called in multiple cook processes and will thus avoid cook indeterminism caused by FGuid::NewGuid. | Misc/Guid.h | |
static FGuid NewGuid() |
Returns a new GUID. | Misc/Guid.h | |
static FGuid NewGuidFromHash
(
const FBlake3Hash& Hash |
Create a guid from a calculated Blake3 Hash | Misc/Guid.h | |
static FGuid NewGuidFromHashBytes
(
const void* HashData, |
Uses the first 16 bytes from HashData to create a Guid. | Misc/Guid.h | |
| Converts a string to a GUID. | Misc/Guid.h | ||
| Misc/Guid.h | |||
| Misc/Guid.h | |||
static bool ParseExact
(
const TCHAR* GuidString, |
Converts a string with the specified format to a GUID. | Misc/Guid.h | |
static bool ParseExact
(
const FString& GuidString, |
Misc/Guid.h | ||
static bool ParseExact
(
FStringView GuidString, |
Misc/Guid.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
uint32 & operator[]
(
int32 Index |
Provides access to the GUIDs components. | Misc/Guid.h | |
const uint32 & operator[]
(
int32 Index |
Provides read-only access to the GUIDs components. | Misc/Guid.h |