Navigation
Unreal Engine C++ API Reference > Runtime > MeshDescription
Inheritance Hierarchy
- FMeshAttributeArraySetBase
- TMeshAttributeArraySet
References
Module | MeshDescription |
Header | /Engine/Source/Runtime/MeshDescription/Public/MeshAttributeArray.h |
Include | #include "MeshAttributeArray.h" |
Syntax
template<typename AttributeType>
class TMeshAttributeArraySet : public FMeshAttributeArraySetBase
Remarks
This is a type-specific attribute array, which is actually instanced in the attribute set.
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
TArray< TMeshAttributeArrayBase< AttributeType >, TInlineAllocator< 1 > > | ArrayForChannels | An array of MeshAttributeArrays, one per channel |
![]() |
AttributeType | DefaultValue | The default value for an attribute of this name |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
TMeshAttributeArraySet
(
const int32 Extent |
Constructors | |
![]() |
TMeshAttributeArraySet
(
const int32 NumberOfChannels, |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
TMeshAttributeArrayBase< AttributeType > & | GetArrayForChannel
(
const int32 Index |
|
![]() ![]() |
const TMeshAttributeArrayBase< AttributeType > & | GetArrayForChannel
(
const int32 Index |
Return the TMeshAttributeArrayBase corresponding to the given attribute channel |
![]() ![]() |
AttributeType | Return default value for this attribute type |
Overridden from FMeshAttributeArraySetBase
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
TUniquePtr< FMeshAttributeArraySetBase > | Clone () |
Creates a copy of itself and returns a TUniquePtr to it |
![]() ![]() ![]() |
uint32 | GetHash () |
|
![]() ![]() ![]() |
int32 | Return number of channels this attribute has | |
![]() ![]() |
void | Initialize
(
const int32 Count |
Sets the number of elements to the exact number provided, and initializes them to the default value |
![]() ![]() |
void | Insert
(
const int32 Index |
Insert the element at the given index |
![]() ![]() |
void | InsertChannel
(
const int32 Index |
Insert a new attribute channel |
![]() ![]() |
void | Remap
(
const TSparseArray< int32 >& IndexRemap |
Performs an element index remap according to the passed array |
![]() ![]() |
void | Remove
(
const int32 Index |
Remove the element at the given index, replacing it with a default value |
![]() ![]() |
void | RemoveChannel
(
const int32 Index |
Remove the channel at the given index |
![]() ![]() |
void | Polymorphic serialization | |
![]() ![]() |
void | SetNumChannels
(
const int32 NumChannels |
Sets number of channels this attribute has |
![]() ![]() |
void | SetNumElements
(
const int32 Count |
Sets the number of elements to the exact number provided, preserving existing elements if the number is bigger |
Typedefs
Name | Description |
---|---|
Super |
Deprecated Functions
Type | Name | Description | |
---|---|---|---|
![]() |
TMeshAttributeArrayBase< AttributeType > & | GetArrayForIndex
(
const int32 Index |
Please use GetArrayForChannel(). |
![]() ![]() |
const TMeshAttributeArrayBase< AttributeType > & | GetArrayForIndex
(
const int32 Index |
Please use GetArrayForChannel(). |
![]() ![]() ![]() |
int32 | Please use GetNumChannels(). | |
![]() ![]() |
void | InsertIndex
(
const int32 Index |
Please use InsertChannel(). |
![]() ![]() |
void | RemoveIndex
(
const int32 Index |
Please use RemoveChannel(). |
![]() ![]() |
void | SetNumIndices
(
const int32 NumIndices |
Please use SetNumChannels(). |