Navigation
API > API/Runtime > API/Runtime/MeshDescription
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.
| Name | TAttributesSet |
| Type | class |
| Header File | /Engine/Source/Runtime/MeshDescription/Public/MeshAttributeArray.h |
| Include Path | #include "MeshAttributeArray.h" |
Syntax
template<typename ElementIDType>
class TAttributesSet : public FAttributesSetBase
Inheritance Hierarchy
- FAttributesSetBase → TAttributesSet
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ForEach
(
ForEachFunc Func |
Call the supplied function on each attribute. | MeshAttributeArray.h | |
void ForEach
(
ForEachFunc Func |
Call the supplied function on each attribute. | MeshAttributeArray.h | |
void ForEachByType
(
ForEachFunc Func |
Call the supplied function on each attribute that matches the given type. | MeshAttributeArray.h | |
void ForEachByType
(
ForEachFunc Func |
Call the supplied function on each attribute that matches the given type. | MeshAttributeArray.h | |
T GetAttribute
(
const ElementIDType ElementID, |
Get an attribute value for the given element ID. | MeshAttributeArray.h | |
int32 GetAttributeChannelCount
(
const FName AttributeName |
Returns the number of indices for the attribute with the given name | MeshAttributeArray.h | |
int32 GetAttributeIndexCount
(
const FName AttributeName |
MeshAttributeArray.h | ||
int32 GetAttributeIndexCount
(
const FName AttributeName |
MeshAttributeArray.h | ||
TMeshAttributesConstRef< ElementIDType, typename TMeshAttributesRefType< T >::ConstRefType > GetAttributesRef
(
const FName AttributeName |
Get an attribute array with the given type and name. | MeshAttributeArray.h | |
TMeshAttributesRef< ElementIDType, typename TMeshAttributesRefType< T >::RefType > GetAttributesRef
(
const FName AttributeName |
Non-const version. | MeshAttributeArray.h | |
void Insert
(
const ElementIDType ElementID |
Inserts a default-initialized value for all attributes of the given ID | MeshAttributeArray.h | |
void InsertAttributeChannel
(
const FName AttributeName, |
Insert a new index for the attribute with the given name | MeshAttributeArray.h | |
void InsertAttributeIndex
(
const FName AttributeName, |
MeshAttributeArray.h | ||
void InsertAttributeIndex
(
const FName AttributeName, |
MeshAttributeArray.h | ||
void Remove
(
const ElementIDType ElementID |
Removes all attributes with the given ID | MeshAttributeArray.h | |
void RemoveAttributeChannel
(
const FName AttributeName, |
Remove an existing index from the attribute with the given name | MeshAttributeArray.h | |
void RemoveAttributeIndex
(
const FName AttributeName, |
MeshAttributeArray.h | ||
void RemoveAttributeIndex
(
const FName AttributeName, |
MeshAttributeArray.h | ||
void SetAttribute
(
const ElementIDType ElementID, |
Set an attribute value for the given element ID. | MeshAttributeArray.h | |
void SetAttributeChannelCount
(
const FName AttributeName, |
Sets the number of indices for the attribute with the given name | MeshAttributeArray.h | |
void SetAttributeIndexCount
(
const FName AttributeName, |
MeshAttributeArray.h | ||
void SetAttributeIndexCount
(
const FName AttributeName, |
MeshAttributeArray.h |