Navigation
API > API/Runtime > API/Runtime/MeshDescription
| Name | TAttributeArrayContainer |
| Type | class |
| Header File | /Engine/Source/Runtime/MeshDescription/Public/AttributeArrayContainer.h |
| Include Path | #include "AttributeArrayContainer.h" |
Syntax
template<typename AttributeType>
class TAttributeArrayContainer
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| AttributeArrayContainer.h | |||
TAttributeArrayContainer
(
const AttributeType& InDefaultValue |
AttributeArrayContainer.h |
Structs
| Name | Remarks |
|---|---|
| FChunk |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| ChunkBits | const int32 | AttributeArrayContainer.h | |
| ChunkMask | const int32 | AttributeArrayContainer.h | |
| ChunkSize | const int32 | AttributeArrayContainer.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Chunks | TArray< FChunk > | AttributeArrayContainer.h | ||
| DefaultValue | AttributeType | AttributeArrayContainer.h | ||
| NumElements | int32 | AttributeArrayContainer.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TArrayView< const AttributeType > Get
(
int32 Index |
Gets the array attribute at the given index as a TArrayView | AttributeArrayContainer.h | |
TArrayView< AttributeType > Get
(
int32 Index |
Gets the array attribute at the given index as a TArrayView | AttributeArrayContainer.h | |
AttributeType GetDefault() |
AttributeArrayContainer.h | ||
int32 GetElementCount
(
int32 Index |
Gets the element count of the array attribute at the given index | AttributeArrayContainer.h | |
uint32 GetHash
(
uint32 Crc |
AttributeArrayContainer.h | ||
int32 GetReservedElementCount
(
int32 Index |
Gets the reserved element count of the array attribute at the given index | AttributeArrayContainer.h | |
void Initialize
(
const int32 ElementCount, |
Initializes the array to the given size with the default value | AttributeArrayContainer.h | |
void Insert
(
const int32 Index, |
Expands the array if necessary so that the passed element index is valid. | AttributeArrayContainer.h | |
TArrayView< AttributeType > InsertIntoElement
(
int32 Index, |
AttributeArrayContainer.h | ||
int32 Num() |
Return size of container | AttributeArrayContainer.h | |
void Remap
(
const TSparseArray< int32 >& IndexRemap, |
Remaps elements according to the passed remapping table | AttributeArrayContainer.h | |
TArrayView< AttributeType > RemoveFromElement
(
int32 Index, |
AttributeArrayContainer.h | ||
void Set
(
int32 Index, |
Sets the attribute array at the given index to the given TArrayView | AttributeArrayContainer.h | |
TArrayView< AttributeType > SetElementSize
(
int32 Index, |
Sets the given attribute array element to have the given number of subarray elements. | AttributeArrayContainer.h | |
void SetNum
(
const int32 ElementCount, |
Sets the number of elements, each element itself being a subarray of items of type AttributeType. | AttributeArrayContainer.h | |
void SetToDefault
(
const int32 Index, |
Fills the index with the default value | AttributeArrayContainer.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static int32 GetElementsInLastChunk
(
const int32 ElementCount |
AttributeArrayContainer.h | ||
static int32 GetNumRequiredChunks
(
const int32 ElementCount |
AttributeArrayContainer.h |