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

#include <UObjectAllocator.h>

Public Member Functions

void AllocatePermanentObjectPool (int32 InPermanentObjectPoolSize)
 
void BootMessage ()
 
COREUOBJECT_API void DisablePersistentAllocator ()
 
COREUOBJECT_API UObjectBaseAllocateUObject (int32 Size, int32 Alignment, bool bAllowPermanent)
 
COREUOBJECT_API void FreeUObject (UObjectBase *Object) const
 

Member Function Documentation

◆ AllocatePermanentObjectPool()

void FUObjectAllocator::AllocatePermanentObjectPool ( int32  InPermanentObjectPoolSize)
inline

Allocates and initializes the permanent object pool

Parameters
InPermanentObjectPoolSizesize of permanent object pool

◆ AllocateUObject()

UE_AUTORTFM_ALWAYS_OPEN UObjectBase * FUObjectAllocator::AllocateUObject ( int32  Size,
int32  Alignment,
bool  bAllowPermanent 
)

Allocates a UObjectBase from the free store or the permanent object pool

Parameters
Sizesize of uobject to allocate
Alignmentalignment of uobject to allocate
bAllowPermanentif true, allow allocation in the permanent object pool, if it fits
Returns
newly allocated UObjectBase (not really a UObjectBase yet, no constructor like thing has been called).

Allocates a UObjectBase from the free store or the permanent object pool

Parameters
Sizesize of uobject to allocate
Alignmentalignment of uobject to allocate
bAllowPermanentif true, allow allocation in the permanent object pool, if it fits
Returns
newly allocated UObjectBase (not really a UObjectBase yet, no constructor-like thing has been called).

◆ BootMessage()

void FUObjectAllocator::BootMessage ( )
inline

Prints a debugf message to allow tuning

◆ DisablePersistentAllocator()

void FUObjectAllocator::DisablePersistentAllocator ( )

Disables allocation of objects from the persistend allocator Needed by the Editor to be able to clean up all objects

◆ FreeUObject()

void FUObjectAllocator::FreeUObject ( UObjectBase Object) const

Returns a UObjectBase to the free store, unless it is in the permanent object pool

Parameters
Objectobject to free

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