Navigation
API > API/Runtime > API/Runtime/MeshDescription
This is a type-specific attribute array, which is actually instanced in the attribute set.
| Name | TMeshAttributeArraySet |
| Type | class |
| Header File | /Engine/Source/Runtime/MeshDescription/Public/MeshAttributeArray.h |
| Include Path | #include "MeshAttributeArray.h" |
Syntax
template<typename AttributeType>
class TMeshAttributeArraySet : public FMeshAttributeArraySetBase
Inheritance Hierarchy
- FMeshAttributeArraySetBase → TMeshAttributeArraySet
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TMeshAttributeArraySet
(
const int32 Extent |
Constructors | MeshAttributeArray.h | |
TMeshAttributeArraySet
(
const int32 NumberOfChannels, |
MeshAttributeArray.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| Super | FMeshAttributeArraySetBase | MeshAttributeArray.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TMeshAttributeArrayBase< AttributeType > & GetArrayForChannel
(
const int32 Index |
MeshAttributeArray.h | ||
const TMeshAttributeArrayBase< AttributeType > & GetArrayForChannel
(
const int32 Index |
Return the TMeshAttributeArrayBase corresponding to the given attribute channel | MeshAttributeArray.h | |
TMeshAttributeArrayBase< AttributeType > & GetArrayForIndex
(
const int32 Index |
MeshAttributeArray.h | ||
const TMeshAttributeArrayBase< AttributeType > & GetArrayForIndex
(
const int32 Index |
MeshAttributeArray.h | ||
AttributeType GetDefaultValue() |
Return default value for this attribute type | MeshAttributeArray.h |
Overridden from FMeshAttributeArraySetBase
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual TUniquePtr< FMeshAttributeArraySetBase > Clone() |
Creates a copy of itself and returns a TUniquePtr to it | MeshAttributeArray.h | |
virtual uint32 GetHash() |
MeshAttributeArray.h | ||
virtual int32 GetNumChannels() |
Return number of channels this attribute has | MeshAttributeArray.h | |
virtual int32 GetNumIndices() |
MeshAttributeArray.h | ||
virtual void Initialize
(
const int32 Count |
Sets the number of elements to the exact number provided, and initializes them to the default value | MeshAttributeArray.h | |
virtual void Insert
(
const int32 Index |
Insert the element at the given index | MeshAttributeArray.h | |
virtual void InsertChannel
(
const int32 Index |
Insert a new attribute channel | MeshAttributeArray.h | |
virtual void InsertIndex
(
const int32 Index |
MeshAttributeArray.h | ||
virtual void Remap
(
const TSparseArray< int32 >& IndexRemap |
Performs an element index remap according to the passed array | MeshAttributeArray.h | |
virtual void Remove
(
const int32 Index |
Remove the element at the given index, replacing it with a default value | MeshAttributeArray.h | |
virtual void RemoveChannel
(
const int32 Index |
Remove the channel at the given index | MeshAttributeArray.h | |
virtual void RemoveIndex
(
const int32 Index |
MeshAttributeArray.h | ||
virtual void Serialize
(
FArchive& Ar |
Polymorphic serialization | MeshAttributeArray.h | |
virtual void SetNumChannels
(
const int32 NumChannels |
Sets number of channels this attribute has | MeshAttributeArray.h | |
virtual void SetNumElements
(
const int32 Count |
Sets the number of elements to the exact number provided, preserving existing elements if the number is bigger | MeshAttributeArray.h | |
virtual void SetNumIndices
(
const int32 NumIndices |
MeshAttributeArray.h |