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

Go to the source code of this file.

Classes

class  UObject
 
struct  UObject::FAssetRegistryTag
 
struct  UObject::FSaveConfigContext
 
struct  FObjectNetPushIdHelper
 
struct  FInternalUObjectBaseUtilityIsValidFlagsChecker
 

Namespaces

namespace  UE
 
namespace  UE::AssetRegistry
 
namespace  UE::ConfigAccessTracking
 
namespace  UE::Cook
 
namespace  UE::Net
 
namespace  UE::Net::Private
 
namespace  ECastCheckedType
 

Enumerations

enum  ECastCheckedType::Type { ECastCheckedType::NullAllowed , ECastCheckedType::NullChecked }
 

Functions

 DECLARE_LOG_CATEGORY_EXTERN (LogObj, Log, All)
 
UE_FORCEINLINE_HINT bool IsValid (const UObject *Test)
 
bool IsValidChecked (const UObject *Test)
 
template<typename T >
T * GetValid (T *Test)
 
template<typename T >
const T * GetValid (const T *Test)
 

Function Documentation

◆ DECLARE_LOG_CATEGORY_EXTERN()

DECLARE_LOG_CATEGORY_EXTERN ( LogObj  ,
Log  ,
All   
)

◆ GetValid() [1/2]

template<typename T >
const T * GetValid ( const T *  Test)

Returns a pointer to a valid object if the Test object passes IsValid() tests, otherwise null

Parameters
TestThe object to test
Returns
Pointer to a valid object if the Test object passes IsValid() tests, otherwise null

◆ GetValid() [2/2]

template<typename T >
T * GetValid ( T *  Test)

Returns a pointer to a valid object if the Test object passes IsValid() tests, otherwise null

Parameters
TestThe object to test
Returns
Pointer to a valid object if the Test object passes IsValid() tests, otherwise null

◆ IsValid()

UE_FORCEINLINE_HINT bool IsValid ( const UObject Test)

Test validity of object

Parameters
TestThe object to test
Returns
Return true if the object is usable: non-null and not pending kill or garbage

◆ IsValidChecked()

bool IsValidChecked ( const UObject Test)
inline

Test validity of object similar to IsValid(Test) however the null pointer test is skipped

Parameters
TestThe object to test
Returns
Return true if the object is usable: not pending kill or garbage