Navigation
Unreal Engine C++ API Reference > Runtime > MeshDescription > TAttributesSet > GetAttributesRef
References
Module | MeshDescription |
Header | /Engine/Source/Runtime/MeshDescription/Public/MeshAttributeArray.h |
Include | #include "MeshAttributeArray.h" |
template<typename T>
TMeshAttributesConstRef< ElementIDType, typename TMeshAttributesRefType< T >::ConstRefType > GetAttributesRef
&40;
const FName AttributeName
&41; const
Remarks
Get an attribute array with the given type and name. The attribute type must correspond to the type passed as the template parameter.
Example of use: TVertexAttributesConstRef
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.