FUniqueObjectGuid

Wrapper structure for a GUID that uniquely identifies a [UObject](API\Runtime\CoreUObject\UObject\UObject)

Choose your operating system:

Windows

macOS

Linux

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/UObject/LazyObjectPtr.h

Include

#include "UObject/LazyObjectPtr.h"

Syntax

struct FUniqueObjectGuid

Remarks

Wrapper structure for a GUID that uniquely identifies a UObject

Constructors

Name Description

Public function

FUniqueObjectGuid()

Public function

FUniqueObjectGuid

(
    const FGuid& InGuid
)

Public function

FUniqueObjectGuid

(
    const UObject* InObject
)

Construct from an existing object

Functions

Name Description

Public function Const

FUniqueObjec...

 

FixupForPIE

(
    int32 PlayInEditorID
)

Fixes up this UniqueObjectID to add or remove the PIE prefix depending on what is currently active

Public function

void

 

FromString

(
    const FString& From
)

Converts from a string

Public function Static

int32

 

GetCurrentTag()

Code needed by FLazyPtr internals

Public function Const

const FGuid ...

 

GetGuid()

Returns wrapped Guid

Public function Static

FUniqueObjec...

 

GetOrCreateIDForObject

(
    const UObject* Object
)

Public function Static

int32

 

InvalidateTag()

Public function Const

bool

 

IsDefault()

Returns true is this is the default value

Public function Const

bool

 

IsValid()

Test if this can ever point to a live UObject

Public function

void

 

Reset()

Reset the guid pointer back to the invalid state

Public function Const

UObject *...

 

ResolveObject()

Attempts to find a currently loaded object that matches this object ID

Public function Const

FString

 

ToString()

Converts into a string

Operators

Name Description

Public function Const

bool

 

operator!=

(
    const FUniqueObjectGuid& Other
)

Public function Const

bool

 

operator==

(
    const FUniqueObjectGuid& Other
)

Constants

Name

Description

CurrentAnnotationTag

Global counter that determines when we need to re-search for GUIDs because more objects have been loaded