Navigation
Unreal Engine C++ API Reference > Runtime > MeshDescription
Inheritance Hierarchy
- FAttributesSetBase
- TAttributesSet
References
Module | MeshDescription |
Header | /Engine/Source/Runtime/MeshDescription/Public/MeshAttributeArray.h |
Include | #include "MeshAttributeArray.h" |
Syntax
template<typename ElementIDType>
class TAttributesSet : public FAttributesSetBase
Remarks
This is a version of the attributes set container which accesses elements by typesafe IDs. This prevents access of (for example) vertex instance attributes by vertex IDs.
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | ForEach
(
ForEachFunc Func |
Call the supplied function on each attribute. |
![]() |
void | ForEach
(
ForEachFunc Func |
Call the supplied function on each attribute. |
![]() ![]() |
void | ForEachByType
(
ForEachFunc Func |
Call the supplied function on each attribute that matches the given type. |
![]() |
void | ForEachByType
(
ForEachFunc Func |
Call the supplied function on each attribute that matches the given type. |
![]() ![]() |
T | GetAttribute
(
const ElementIDType ElementID, |
Get an attribute value for the given element ID. |
![]() ![]() |
int32 | GetAttributeChannelCount
(
const FName AttributeName |
Returns the number of indices for the attribute with the given name |
![]() ![]() |
int32 | GetAttributeIndexCount
(
const FName AttributeName |
|
![]() ![]() |
int32 | GetAttributeIndexCount
(
const FName AttributeName |
|
![]() ![]() |
TMeshAttributesConstRef< ElementIDType, typename TMeshAttributesRefType< T >::ConstRefType > | GetAttributesRef
(
const FName AttributeName |
Get an attribute array with the given type and name. |
![]() |
TMeshAttributesRef< ElementIDType, typename TMeshAttributesRefType< T >::RefType > | GetAttributesRef
(
const FName AttributeName |
Non-const version. |
![]() |
void | Insert
(
const ElementIDType ElementID |
Inserts a default-initialized value for all attributes of the given ID |
![]() |
void | InsertAttributeChannel
(
const FName AttributeName, |
Insert a new index for the attribute with the given name |
![]() |
void | InsertAttributeIndex
(
const FName AttributeName, |
|
![]() |
void | InsertAttributeIndex
(
const FName AttributeName, |
|
![]() |
void | Remove
(
const ElementIDType ElementID |
Removes all attributes with the given ID |
![]() |
void | RemoveAttributeChannel
(
const FName AttributeName, |
Remove an existing index from the attribute with the given name |
![]() |
void | RemoveAttributeIndex
(
const FName AttributeName, |
|
![]() |
void | RemoveAttributeIndex
(
const FName AttributeName, |
|
![]() |
void | SetAttribute
(
const ElementIDType ElementID, |
Set an attribute value for the given element ID. |
![]() |
void | SetAttributeChannelCount
(
const FName AttributeName, |
Sets the number of indices for the attribute with the given name |
![]() |
void | SetAttributeIndexCount
(
const FName AttributeName, |
|
![]() |
void | SetAttributeIndexCount
(
const FName AttributeName, |