Navigation
API > API/Plugins > API/Plugins/ChaosVD > API/Plugins/ChaosVD/FChaosVDGeometryBuilder
Description
Finds or creates a Mesh component compatible with the provided mesh data handle, and updates the handle to use that new component. This is used when data in the handle changed and becomes no longer compatible with the mesh component in use.
| Name | UpdateMeshDataInstance |
| Type | function |
| Header File | /Engine/Plugins/ChaosVD/Source/ChaosVD/Public/ChaosVDGeometryBuilder.h |
| Include Path | #include "ChaosVDGeometryBuilder.h" |
template<typename ComponentType>
void UpdateMeshDataInstance
(
const TSharedRef < FChaosVDInstancedMeshData > & InHandleToUpdate,
EChaosVDMeshAttributesFlags MeshAttributes
)
Parameters
| Name | Remarks |
|---|---|
| HandleToUpdate | Instance handle we need to update to a new component |
| MeshAttributes | Attributes of the mesh that the new component needs to be compativle with |