FAttributesSetBase

This is the container for all attributes and their arrays.

Windows
MacOS
Linux

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

Name Description

Protected variable

TMap< FName, FA...

 

Map

The actual container

Protected variable

int32

 

NumElements

The number of elements in each attribute array

Constructors

Name Description

Public function

FAttributesSetBase()

Constructor

Functions

Name Description

Public function Const

void

 

GetAttributeNames

(
    TArray< FName, Allocator >& OutAtt...
)

Returns an array of all the attribute names registered

Public function Const

uint32

 

GetHash

(
    const FName AttributeName
)

Public function Const

bool

 

HasAttribute

(
    const FName AttributeName
)

Determines whether an attribute exists with the given name

Public function

bool

 

HasAttribute

(
    const FName AttributeName
)

Determines whether an attribute exists with the given name

Public function Const

bool

 

HasAttributeOfType

(
    const FName AttributeName
)

Determines whether an attribute of the given type exists with the given name

Public function

void

 

Initialize

(
    const int32 Count
)

Initializes all attributes to have the given number of elements with the default value

Protected function

void

 

Insert

(
    const int32 Index
)

Insert a new element at the given index.

Public function

void

 

RegisterAttribute

(
    const FName AttributeName,
    const int32 NumberOfIndices,
    const AttributeType& Default,
    const EMeshAttributeFlags Flags
)

Register a new attribute name with the given type (must be a member of the AttributeTypes tuple).

Public function

void

 

Remap

(
    const TSparseArray< int32 >& Index...
)

Applies the given remapping to the attributes set

Protected function

void

 

Remove

(
    const int32 Index
)

Remove an element at the given index.

Public function

void

 

UnregisterAttribute

(
    const FName AttributeName
)

Unregister an attribute with the given name.

Public function

void

 

UnregisterAttribute

(
    const FName AttributeName
)

Unregister an attribute with the given name.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss