TAttributesSet::GetAttributesView

Get a view on an attribute array with the given name, accessing elements as the given type.

Windows
MacOS
Linux

References

Module

MeshDescription

Header

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

Include

#include "MeshAttributeArray.h"

Syntax

template<typename ViewType>
TMeshAttributesConstView< ElementIDType, ViewType > GetAttributesView
(
    const FName AttributeName
) const

Remarks

Get a view on an attribute array with the given name, accessing elements as the given type. Access to elements will be slightly slower than with GetAttributesRef, but element access is not strongly typed.

Note that the returned object is a value type which should be assigned and passed by value, not reference. It is valid for as long as this TAttributesSet object exists.

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