IsReferenced

Returns whether an object is referenced, not counting references from itself

Windows
MacOS
Linux

References

Module

CoreUObject

Header

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

Include

#include "UObject/UObjectGlobals.h"

Source

/Engine/Source/Runtime/CoreUObject/Private/UObject/UObjectGlobals.cpp

Syntax

bool IsReferenced
(
    UObject *& Res,
    EObjectFlags KeepFlags,
    EInternalObjectFlags InternalKeepFlags,
    bool bCheckSubObjects,
    FReferencerInformationList * FoundReferences
)

Remarks

Returns whether an object is referenced, not counting references from itself

Returns

true if object is referenced, false otherwise

Parameters

Parameter

Description

Obj

Object to check

KeepFlags

Objects with these flags will be considered as being referenced

InternalKeepFlags

Objects with these internal flags will be considered as being referenced

bCheckSubObjects

Treat subobjects as if they are the same as passed in object

FoundReferences

If non-nullptr fill in with list of objects that hold references

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss