UDynamicMeshComponent::SetDynamicMesh

Set the child [UDynamicMesh](API\Runtime\GeometryFramework\UDynamicMesh).

Choose your operating system:

Windows

macOS

Linux

Warnings

  • Currently this is somewhat risky, it is on the caller/clients to make sure that the actual mesh is not being simultaneously modified on multiple threads

References

Module

GeometryFramework

Header

/Engine/Source/Runtime/GeometryFramework/Public/Components/DynamicMeshComponent.h

Include

#include "Components/DynamicMeshComponent.h"

Source

/Engine/Source/Runtime/GeometryFramework/Private/Components/DynamicMeshComponent.cpp

Syntax

void SetDynamicMesh
(
    UDynamicMesh * NewMesh
)

Remarks

Set the child UDynamicMesh. This can be used to 'share' a UDynamicMesh between Component instances.

Currently this is somewhat risky, it is on the caller/clients to make sure that the actual mesh is not being simultaneously modified on multiple threads