TMeshAttributeArraySet

This is a type-specific attribute array, which is actually instanced in the attribute set.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

MeshDescription

Header

/Engine/Source/Runtime/MeshDescription/Public/MeshAttributeArray.h

Include

#include "MeshAttributeArray.h"

Syntax

template<typename AttributeType>
class TMeshAttributeArraySet : public FMeshAttributeArraySetBase

Remarks

This is a type-specific attribute array, which is actually instanced in the attribute set.

Variables

Name Description

Protected variable

TArray< TMeshAt...

 

ArrayForIndices

An array of MeshAttributeArrays, one per attribute index

Protected variable

AttributeType

 

DefaultValue

The default value for an attribute of this name

Constructors

Name Description

Public function

TMeshAttributeArraySet

(
    const int32 NumberOfIndices,
    const AttributeType& InDefaultValu...,
    const EMeshAttributeFlags InFlags,
    const int32 InNumberOfElements
)

Constructor

Functions

Name Description

Public function Const

const TMeshA...

 

GetArrayForIndex

(
    const int32 Index
)

Return the TMeshAttributeArrayBase corresponding to the given attribute index

Public function

TMeshAttribu...

 

GetArrayForIndex

(
    const int32 Index
)

Public function Const

AttributeTyp...

 

GetDefaultValue()

Return default value for this attribute type

Overridden from FMeshAttributeArraySetBase

Name Description

Public function Virtual Const

TUniquePtr< ...

 

Clone()

Creates a copy of itself and returns a TUniquePtr to it

Public function Virtual Const

uint32

 

GetHash()

Public function Virtual Const

int32

 

GetNumIndices()

Return number of indices this attribute has

Public function Virtual

void

 

Initialize

(
    const int32 Count
)

Sets the number of elements to the exact number provided, and initializes them to the default value

Public function Virtual

void

 

Insert

(
    const int32 Index
)

Insert the element at the given index

Public function Virtual

void

 

InsertIndex

(
    const int32 Index
)

Insert a new attribute index

Public function Virtual

void

 

Remap

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

Performs an element index remap according to the passed array

Public function Virtual

void

 

Remove

(
    const int32 Index
)

Remove the element at the given index, replacing it with a default value

Public function Virtual

void

 

RemoveIndex

(
    const int32 Index
)

Remove the array at the given index

Public function Virtual

void

 

Serialize

(
    FArchive& Ar
)

Polymorphic serialization

Public function Virtual

void

 

SetNumIndices

(
    const int32 NumIndices
)

Sets number of indices this attribute has

Typedefs

Name

Description

Super

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