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
class FAttributesSetBase
Remarks
This is the container for all attributes and their arrays. It wraps a TMap, mapping from attribute name to attribute array. An attribute may be of any arbitrary type; we use a mixture of polymorphism and compile-time templates to handle the different types.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TMap< FName, FAttributesSetEntry > | Map | The actual container | |
| int32 | NumElements | The number of elements in each attribute array |
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Constructor |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AppendAttributesFrom
(
const FAttributesSetBase& OtherAttributesSet |
||
| bool | DoesAttributeHaveAllFlags
(
const FName AttributeName, |
Determine whether an attribute has all of the given flags | |
| bool | DoesAttributeHaveAnyFlags
(
const FName AttributeName, |
Determine whether an attribute has any of the given flags | |
| void | GetAttributeNames
(
TArray< FName, Allocator >& OutAttributeNames |
Returns an array of all the attribute names registered | |
| TMeshAttributesRef< int32, typename TMeshAttributesRefType< T >::RefType > | GetAttributesRef
(
const FName AttributeName |
||
| TMeshAttributesConstRef< int32, typename TMeshAttributesRefType< T >::ConstRefType > | GetAttributesRef
(
const FName AttributeName |
Get an attribute array with the given type and name. | |
| uint32 | |||
| int32 | Gets the number of elements in the attribute set | ||
| bool | HasAttribute
(
const FName AttributeName |
Determines whether an attribute exists with the given name | |
| bool | HasAttributeOfType
(
const FName AttributeName |
Determines whether an attribute of the given type exists with the given name | |
| void | Initialize
(
const int32 Count |
Initializes all attributes to have the given number of elements with the default value | |
| void | Insert a new element at the given index. | ||
| TMeshAttributesArray< typename TMeshAttributesRegisterType< T >::RefType > | RegisterAttribute
(
const FName AttributeName, |
Register a new simple attribute. | |
| TMeshAttributesArray< typename TMeshAttributesRegisterType< T >::RefType > | RegisterAttribute
(
const FName AttributeName, |
Register a new fixed array attribute. | |
| TMeshAttributesArray< typename TMeshAttributesRegisterType< T >::RefType > | RegisterAttributeInternal
(
const FName AttributeName, |
Register a new attribute name with the given type (must be a member of the AttributeTypes tuple). | |
| TMeshAttributesArray< typename TMeshAttributesRegisterType< T >::RefType > | RegisterIndexAttribute
(
const FName AttributeName, |
Register a new unbounded array attribute. | |
| void | Remap
(
const TSparseArray< int32 >& IndexRemap |
Applies the given remapping to the attributes set | |
| void | Remove an element at the given index. | ||
| void | SetNumElements
(
const int32 Count |
Sets all attributes to have the given number of elements, preserving existing values and filling extra elements with the default value | |
| void | UnregisterAttribute
(
const FName AttributeName |
Unregister an attribute with the given name. |