UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FActorGUIDGenerator Class Reference

Public Member Functions

 FActorGUIDGenerator ()
 
FName NewActorGUID (FName BaseName)
 

Detailed Description

Generates a 102-bits actor GUID:

  • Bits 101-54 hold the user unique id.
  • Bits 53-0 hold a microseconds timestamp.

Notes:

  • The timestamp is stored in microseconds for a total of 54 bits, enough to cover the next 570 years.
  • The highest 72 bits are appended to the name in hexadecimal.
  • The lowest 30 bits of the timestamp are stored in the name number. This is to minimize the total names generated for globally unique names (string part will change every ~17 minutes for a specific actor class).
  • The name number bit 30 is reserved to know if this is a globally unique name. This is not 100% safe, but should cover most cases.
  • The name number bit 31 is reserved to preserve the fast path name generation (see GFastPathUniqueNameGeneration).
  • On some environments, cooking happens without network, so we can't retrieve the MAC adress for spawned actors, assign a default one in this case.

Constructor & Destructor Documentation

◆ FActorGUIDGenerator()

FActorGUIDGenerator::FActorGUIDGenerator ( )
inline

Member Function Documentation

◆ NewActorGUID()

FName FActorGUIDGenerator::NewActorGUID ( FName  BaseName)
inline

The documentation for this class was generated from the following file: