UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
UObjectBaseUtility.h File Reference

Go to the source code of this file.

Classes

class  UObjectBaseUtility
 
class  FScopeCycleCounterUObject
 

Macros

#define USE_LIGHTWEIGHT_UOBJECT_STATS_FOR_HITCH_DETECTION   (1)
 
#define SCOPE_CYCLE_UOBJECT(Name, Object)
 

Functions

bool IsPossiblyAllocatedUObjectPointer (UObject *Ptr)
 
FName GetFNameSafe (const UObjectBaseUtility *Object)
 
FString GetNameSafe (const UObjectBaseUtility *Object)
 
FString GetPathNameSafe (const UObjectBaseUtility *Object)
 
FString GetFullNameSafe (const UObjectBaseUtility *Object)
 
COREUOBJECT_API UClassGetParentNativeClass (UClass *Class)
 
COREUOBJECT_API UClassGetTopMostNonNativeClass (UClass *Class, bool bAllowReturnNativeClass)
 

Macro Definition Documentation

◆ SCOPE_CYCLE_UOBJECT

#define SCOPE_CYCLE_UOBJECT (   Name,
  Object 
)

◆ USE_LIGHTWEIGHT_UOBJECT_STATS_FOR_HITCH_DETECTION

#define USE_LIGHTWEIGHT_UOBJECT_STATS_FOR_HITCH_DETECTION   (1)

Function Documentation

◆ GetFNameSafe()

FName GetFNameSafe ( const UObjectBaseUtility Object)
inline

Returns the logical name of this object.

Parameters
Objectobject to retrieve the name for; null gives NAME_None.
Returns
Name of the object.

◆ GetFullNameSafe()

FString GetFullNameSafe ( const UObjectBaseUtility Object)
inline

Returns the full name of this object.

Parameters
Objectobject to retrieve the full name for; null (or a null class!) gives "None".
Returns
full name of the object.

◆ GetNameSafe()

FString GetNameSafe ( const UObjectBaseUtility Object)
inline

Returns the name of this object (with no path information).

Parameters
Objectobject to retrieve the name for; null gives "None".
Returns
Name of the object.

◆ GetParentNativeClass()

COREUOBJECT_API UClass * GetParentNativeClass ( UClass Class)

Returns the native (C++) parent class of the supplied class If supplied class is native, it will be returned.

◆ GetPathNameSafe()

FString GetPathNameSafe ( const UObjectBaseUtility Object)
inline

Returns the path name of this object.

Parameters
Objectobject to retrieve the path name for; null gives "None".
Returns
path name of the object.

◆ GetTopMostNonNativeClass()

COREUOBJECT_API UClass * GetTopMostNonNativeClass ( UClass Class,
bool  bAllowReturnNativeClass 
)

Returns the TopMost non-native parent class of the supplied class.

Parameters
Class- The class used to find its TopMost non-native parent class.
bAllowReturnNativeClass- If supplied class is native, it will be returned.
Returns
  • TopMost non-native parent class found in the hierarchy.
  • Class if the supplied Class is already native and bAllowReturnNativeClass is true.
  • nullptr if the supplied class is already native and bAllowReturnNativeClass is false.

◆ IsPossiblyAllocatedUObjectPointer()

bool IsPossiblyAllocatedUObjectPointer ( UObject Ptr)
inline

Returns false if this pointer cannot be a valid pointer to a UObject