Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/FUObjectAllocator
Description
Allocates a UObjectBase from the free store or the permanent object pool
Allocates a UObjectBase from the free store or the permanent object pool
| Name | AllocateUObject |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectAllocator.h |
| Include Path | #include "UObject/UObjectAllocator.h" |
| Source | /Engine/Source/Runtime/CoreUObject/Private/UObject/UObjectAllocator.cpp |
UObjectBase * AllocateUObject
(
int32 Size,
int32 Alignment,
bool bAllowPermanent
)
newly allocated UObjectBase (not really a UObjectBase yet, no constructor-like thing has been called).
Parameters
| Name | Remarks |
|---|---|
| Size | size of uobject to allocate |
| Alignment | alignment of uobject to allocate |
| bAllowPermanent | if true, allow allocation in the permanent object pool, if it fits |
| Size | size of uobject to allocate |
| Alignment | alignment of uobject to allocate |
| bAllowPermanent | if true, allow allocation in the permanent object pool, if it fits |