Navigation
API > API/Runtime > API/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 | |
| TMeshAttributesRef< ElementIDType, typename TMeshAttributesRefType< T >::RefType > | GetAttributesRef
(
const FName AttributeName |
Non-const version. | |
| TMeshAttributesConstRef< ElementIDType, typename TMeshAttributesRefType< T >::ConstRefType > | GetAttributesRef
(
const FName AttributeName |
Get an attribute array with the given type and name. | |
| 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 | 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 | 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 |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| int32 | GetAttributeIndexCount
(
const FName AttributeName |
Please use GetAttributeChannelCount() instead. | |
| int32 | GetAttributeIndexCount
(
const FName AttributeName |
Please use GetAttributeChannelCount() instead. | |
| void | InsertAttributeIndex
(
const FName AttributeName, |
Please use untemplated InsertAttributeIndexCount() instead. | |
| void | InsertAttributeIndex
(
const FName AttributeName, |
Please use InsertAttributeChannel() instead. | |
| void | RemoveAttributeIndex
(
const FName AttributeName, |
Please use RemoveAttributeChannel() instead. | |
| void | RemoveAttributeIndex
(
const FName AttributeName, |
Please use untemplated RemoveAttributeIndexCount() instead. | |
| void | SetAttributeIndexCount
(
const FName AttributeName, |
Please use SetAttributeChannelCount() instead. | |
| void | SetAttributeIndexCount
(
const FName AttributeName, |
Please use untemplated SetAttributeChannelCount() instead. |