Navigation
API > API/Plugins > API/Plugins/GeometryScriptingEditor > API/Plugins/GeometryScriptingEditor/AGeneratedDynamicMeshActor
Description
Attempt to copy Actor Properties to a StaticMeshActor. Optionally copy DynamicMeshComponent material list to the StaticMeshComponent. This function is useful when (eg) swapping from a DynamicMeshActor to a StaticMeshActor as it will allow many configured Actor settings to be preserved (like assigned DataLayers, etc)
| Name | CopyPropertiesToStaticMesh |
| Type | function |
| Header File | /Engine/Plugins/Runtime/GeometryScripting/Source/GeometryScriptingEditor/Public/GeometryActors/GeneratedDynamicMeshActor.h |
| Include Path | #include "GeometryActors/GeneratedDynamicMeshActor.h" |
| Source | /Engine/Plugins/Runtime/GeometryScripting/Source/GeometryScriptingEditor/Private/GeometryActors/GeneratedDynamicMeshActor.cpp |
UFUNCTION (BlueprintCallable, Category=DynamicMeshActor)
void CopyPropertiesToStaticMesh
(
AStaticMeshActor * StaticMeshActor,
bool bCopyComponentMaterials
)