| TMeshAttributesViewBase
|
Module |
|
Header |
/Engine/Source/Runtime/MeshDescription/Public/MeshAttributeArray.h |
Include |
#include "MeshAttributeArray.h" |
template<typename ViewType>
class TMeshAttributesViewBase
This is the class used to provide a 'view' of the specified type on an attribute array. Like TMeshAttributesRef, it is a proxy object which is valid for as long as the owning FMeshDescription exists, and should be passed by value.
This is the base class, and shouldn't be instanced directly.
Name | Description | ||
---|---|---|---|
|
ArrayPtr |
Name | Description | |
---|---|---|
|
TMeshAttributesViewBase ( |
Constructor taking a pointer to a FMeshAttributeArraySetBase |
Name | Description | ||
---|---|---|---|
|
ViewType |
GetByIndex ( |
Get the element with the given ID from index 0 |
|
ViewType |
GetByIndex |
Get the element with the given element and attribute indices |
|
ViewType |
GetDefaultValue() |
Return default value for this attribute type |
|
GetNumElements() |
Get the number of elements in this attribute array |
|
|
GetNumIndices() |
Return number of indices this attribute has |
|
|
IsValid() |
Return whether the reference is valid or not |
|
|
SetByIndex ( |
Set the attribute index 0 element with the given index to the provided value |
|
|
SetByIndex |
Set the element with the given element and attribute indices to the provided value |