TStaticMeshVertexData

The implementation of the static mesh vertex data storage type.

Windows
MacOS
Linux

Inheritance Hierarchy

Syntax

template<typename VertexDataType>
class TStaticMeshVertexData : public FStaticMeshVertexDataInterface

Remarks

The implementation of the static mesh vertex data storage type.

Constructors

Name Description

Public function

TStaticMeshVertexData

(
    bool InNeedsCPUAccess
)

Constructor

Functions

Name Description

Public function

void

 

Assign

(
    const TArray< VertexDataType >& Ot...
)

Assignment. This is currently the only method which allows for modifying an existing resource array

Overridden from FStaticMeshVertexDataInterface

Name Description

Public function Virtual

void

 

Empty

(
    uint32 NumVertices
)

Public function Virtual Const

bool

 

GetAllowCPUAccess()

Public function Virtual

uint8 *

 

GetDataPointer()

Public function Virtual

FResourceArr...

 

GetResourceArray()

Public function Virtual Const

SIZE_T

 

GetResourceSize()

Helper function to return the amount of memory allocated by this container.

Public function Virtual Const

uint32

 

GetStride()

Public function Virtual

bool

 

IsValidIndex

(
    uint32 Index
)

Public function Virtual Const

int32

 

Num()

Helper function to return the number of elements by this container.

Public function Virtual

void

 

ResizeBuffer

(
    uint32 NumVertices,
    EResizeBufferFlags BufferFlags
)

Resizes the vertex data buffer, discarding any data which no longer fits.

Public function Virtual

void

 

Serialize

(
    FArchive& Ar
)

Serializer for this class

References

Module

Engine

Header

Runtime/Engine/Public/StaticMeshVertexData.h

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback