Navigation
Unreal Engine C++ API Reference > Runtime > MeshDescription
Inheritance Hierarchy
- FMeshAttributeArraySetBase
- TMeshAttributeArraySet
- TMeshUnboundedAttributeArraySet
References
Module | MeshDescription |
Header | /Engine/Source/Runtime/MeshDescription/Public/MeshAttributeArray.h |
Include | #include "MeshAttributeArray.h" |
Syntax
class FMeshAttributeArraySetBase
Remarks
This is the base class for an attribute array set. An attribute array set is a container which holds attribute arrays, one per attribute index. Many attributes have only one index, while others (such as texture coordinates) may want to define many.
All attribute array set instances will be of derived types; this type exists for polymorphism purposes, so that they can be managed by a generic TUniquePtr
In general, we avoid accessing them via virtual dispatch by insisting that their type be passed as a template parameter in the accessor. This can be checked against the Type field to ensure that we are accessing an instance by its correct type.
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
uint32 | Extent | Extent of the type, i.e. the number of array elements it consists of |
![]() |
EMeshAttributeFlags | Flags | Implementation-defined attribute name flags |
![]() |
int32 | NumElements | Number of elements in each index |
![]() |
uint32 | Type | Type of the attribute array (based on the tuple element index from AttributeTypes) |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
FMeshAttributeArraySetBase
(
const uint32 InType, |
Constructor |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
Virtual interface |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
TUniquePtr< FMeshAttributeArraySetBase > | Clone () |
|
![]() ![]() |
uint32 | GetExtent () |
Get the type extent of this attribute array set |
![]() ![]() |
EMeshAttributeFlags | GetFlags () |
Get the flags for this attribute array set |
![]() ![]() |
uint32 | GetHash () |
|
![]() ![]() |
int32 | ||
![]() ![]() |
int32 | Return number of elements each attribute index has | |
![]() ![]() |
int32 | ||
![]() ![]() |
uint32 | GetType () |
Get the type index of this attribute array set |
![]() ![]() |
bool | HasType () |
Determine whether this attribute array set is of the given type |
![]() |
void | Initialize
(
const int32 Count |
|
![]() |
void | ||
![]() |
void | InsertChannel
(
const int32 Index |
|
![]() |
void | InsertIndex
(
const int32 Index |
|
![]() |
void | Remap
(
const TSparseArray< int32 >& IndexRemap |
|
![]() |
void | ||
![]() |
void | RemoveChannel
(
const int32 Index |
|
![]() |
void | RemoveIndex
(
const int32 Index |
|
![]() |
void | ||
![]() |
void | SetFlags
(
const EMeshAttributeFlags InFlags |
Set the flags for this attribute array set |
![]() |
void | SetNumChannels
(
const int32 NumChannels |
|
![]() |
void | SetNumElements
(
const int32 Count |
|
![]() |
void | SetNumIndices
(
const int32 NumIndices |