Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TArray
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void SetNumZeroed
(
SizeType NewNum, |
Resizes array to given number of elements, optionally shrinking it. New elements will be zeroed. | Containers/Array.h | |
void SetNumZeroed
(
SizeType NewNum, |
Containers/Array.h |
SetNumZeroed(SizeType, EAllowShrinking)
Description
Resizes array to given number of elements, optionally shrinking it. New elements will be zeroed.
| Name | SetNumZeroed |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/Array.h |
| Include Path | #include "Containers/Array.h" |
void SetNumZeroed
(
SizeType NewNum,
EAllowShrinking AllowShrinking
)
Parameters
| Name | Remarks |
|---|---|
| NewNum | New size of the array. |
| AllowShrinking | (Optional) By default, arrays with large amounts of slack will automatically shrink. Use FNonshrinkingAllocator or pass EAllowShrinking::No to prevent this. |
SetNumZeroed(SizeType, bool)
| Name | SetNumZeroed |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/Array.h |
| Include Path | #include "Containers/Array.h" |
void SetNumZeroed
(
SizeType NewNum,
bool bAllowShrinking
)