![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <Guid.h>
Static Public Member Functions | |
| static void | AutoRTFMAssignFromOpenToClosed (FGuid &Closed, FGuid Open) |
| static CORE_API FGuid | NewGuid () |
| static CORE_API FGuid | NewDeterministicGuid (FStringView ObjectPath, uint64 Seed=0) |
| static CORE_API FGuid | NewGuidFromHash (const FBlake3Hash &Hash) |
| static CORE_API FGuid | NewGuidFromHashBytes (const void *HashData, int64 DataLen) |
| static CORE_API FGuid | Combine (const FGuid &GuidA, const FGuid &GuidB) |
| static CORE_API bool | Parse (const TCHAR *GuidString, FGuid &OutGuid) |
| static CORE_API bool | Parse (const FString &GuidString, FGuid &OutGuid) |
| static CORE_API bool | Parse (FStringView GuidString, FGuid &OutGuid) |
| static CORE_API bool | ParseExact (const TCHAR *GuidString, EGuidFormats Format, FGuid &OutGuid) |
| static CORE_API bool | ParseExact (const FString &GuidString, EGuidFormats Format, FGuid &OutGuid) |
| static CORE_API bool | ParseExact (FStringView GuidString, EGuidFormats Format, FGuid &OutGuid) |
Public Attributes | |
| uint32 | A |
| uint32 | B |
| uint32 | C |
| uint32 | D |
Friends | |
| bool | operator== (const FGuid &X, const FGuid &Y) |
| bool | operator!= (const FGuid &X, const FGuid &Y) |
| bool | operator< (const FGuid &X, const FGuid &Y) |
| CORE_API friend FArchive & | operator<< (FArchive &Ar, FGuid &G) |
| CORE_API friend void | operator<< (FStructuredArchive::FSlot Slot, FGuid &G) |
| FString | LexToString (const FGuid &Value) |
| void | LexFromString (FGuid &Result, const TCHAR *String) |
| uint32 | GetTypeHash (const FGuid &Guid) |
Implements a globally unique identifier.
|
inlineconstexpr |
Default constructor.
Creates and initializes a new GUID from the specified components.
| InA | The first component. |
| InB | The second component. |
| InC | The third component. |
| InD | The fourth component. |
|
inlineexplicit |
| void FGuid::AppendString | ( | FAnsiStringBuilderBase & | Builder, |
| EGuidFormats | Format = EGuidFormats::DigitsWithHyphensLower |
||
| ) | const |
Appends this GUID to the string builder using the specified format.
| void FGuid::AppendString | ( | FString & | Out, |
| EGuidFormats | Format = EGuidFormats::Digits |
||
| ) | const |
Converts this GUID to its string representation using the specified format.
| Format | The string format to use. |
| void FGuid::AppendString | ( | FUtf8StringBuilderBase & | Builder, |
| EGuidFormats | Format = EGuidFormats::DigitsWithHyphensLower |
||
| ) | const |
| void FGuid::AppendString | ( | FWideStringBuilderBase & | Builder, |
| EGuidFormats | Format = EGuidFormats::DigitsWithHyphensLower |
||
| ) | const |
Returns a GUID which is a combinationof the two provided ones.
| bool FGuid::ExportTextItem | ( | FString & | ValueStr, |
| FGuid const & | DefaultValue, | ||
| UObject * | Parent, | ||
| int32 | PortFlags, | ||
| class UObject * | ExportRootScope | ||
| ) | const |
Exports the GUIDs value to a string.
| ValueStr | Will hold the string value. |
| DefaultValue | The default value. |
| Parent | Not used. |
| PortFlags | Not used. |
| ExportRootScope | Not used. |
| bool FGuid::ImportTextItem | ( | const TCHAR *& | Buffer, |
| int32 | PortFlags, | ||
| UObject * | Parent, | ||
| FOutputDevice * | ErrorText | ||
| ) |
Imports the GUIDs value from a text buffer.
| Buffer | The text buffer to import from. |
| PortFlags | Not used. |
| Parent | Not used. |
| ErrorText | The output device for error logging. |
|
inline |
Checks whether this GUID is valid or not.
A GUID that has all its components set to zero is considered invalid.
|
static |
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. ObjectPath and Seed must be deterministic.
|
static |
Returns a new GUID.
|
static |
Create a guid from a calculated Blake3 Hash
Uses the first 16 bytes from HashData to create a Guid. The first 16 bytes of HashData should be premixed to include all cryptographically necessary bytes from the hash to describe larger dataset, so that changing any byte of the dataset will change the first 16 bytes of HashData. If HashData is less than 16 bytes, it is padded with 0 to create the guid.
Provides access to the GUIDs components.
| Index | The index of the component to return (0...3). |
Provides read-only access to the GUIDs components.
| Index | The index of the component to return (0...3). |
Converts a string to a GUID.
| GuidString | The string to convert. |
| OutGuid | Will contain the parsed GUID. |
|
static |
|
static |
|
static |
|
static |
|
inline |
|
inline |
Converts this GUID to its string representation.
| Format | The string format to use. |
Calculates the hash for a GUID.
| Guid | The GUID to calculate the hash for. |
|
friend |
Guid default string conversion.
Compares two GUIDs for inequality.
| X | The first GUID to compare. |
| Y | The second GUID to compare. |
Compares two GUIDs.
| X | The first GUID to compare. |
| Y | The second GUID to compare. |
Serializes a GUID from or into an archive.
| Ar | The archive to serialize from or into. |
| G | The GUID to serialize. |
|
friend |
Serializes a GUID from or into a structured archive slot.
| Slot | The structured archive slot to serialize from or into |
| G | The GUID to serialize. |
Compares two GUIDs for equality.
| X | The first GUID to compare. |
| Y | The second GUID to compare. |
| uint32 FGuid::A |
Holds the first component.
| uint32 FGuid::B |
Holds the second component.
| uint32 FGuid::C |
Holds the third component.
| uint32 FGuid::D |
Holds the fourth component.