Navigation
API > API/Runtime > API/Runtime/MeshDescription
References
| Module | MeshDescription |
| Header | /Engine/Source/Runtime/MeshDescription/Public/AttributeArrayContainer.h |
| Include | #include "AttributeArrayContainer.h" |
Syntax
template<typename AttributeType>
class TAttributeArrayContainer
Constructors
| Type | Name | Description | |
|---|---|---|---|
TAttributeArrayContainer
(
const AttributeType& InDefaultValue |
Functions
| Type | Name | Description | |
|---|---|---|---|
| TArrayView< const AttributeType > | Gets the array attribute at the given index as a TArrayView | ||
| TArrayView< AttributeType > | Gets the array attribute at the given index as a TArrayView | ||
| AttributeType | GetDefault () |
||
| int32 | GetElementCount
(
int32 Index |
Gets the element count of the array attribute at the given index | |
| uint32 | |||
| int32 | GetReservedElementCount
(
int32 Index |
Gets the reserved element count of the array attribute at the given index | |
| void | Initialize
(
const int32 ElementCount, |
Initializes the array to the given size with the default value | |
| void | Expands the array if necessary so that the passed element index is valid. | ||
| TArrayView< AttributeType > | InsertIntoElement
(
int32 Index, |
||
| int32 | Num () |
Return size of container | |
| void | Remap
(
const TSparseArray< int32 >& IndexRemap, |
Remaps elements according to the passed remapping table | |
| TArrayView< AttributeType > | RemoveFromElement
(
int32 Index, |
||
| void | Set
(
int32 Index, |
Sets the attribute array at the given index to the given TArrayView | |
| TArrayView< AttributeType > | SetElementSize
(
int32 Index, |
Sets the given attribute array element to have the given number of subarray elements. | |
| void | Sets the number of elements, each element itself being a subarray of items of type AttributeType. | ||
| void | SetToDefault
(
const int32 Index, |
Fills the index with the default value |