# Runtime Support for "CopyMeshToStaticMesh"

**URL:** <https://forums.unrealengine.com/t/runtime-support-for-copymeshtostaticmesh/1184532>\
**Category:** Blueprint\
**Tags:** unreal-engine, geometry-script, geometry, runtime, question\
**Created:** [May 31, 2023, 12:31pm UTC](https://forums.unrealengine.com/t/runtime-support-for-copymeshtostaticmesh/1184532 "2023-05-31T12:31:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![SimPro2023](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/simpro2023/32/708849_2.png) [@SimPro2023](https://forums.unrealengine.com/u/SimPro2023)\
**Post date:** [May 31, 2023, 12:31pm UTC](https://forums.unrealengine.com/t/runtime-support-for-copymeshtostaticmesh/1184532/1 "2023-05-31T12:31:05Z")

</div>

I looked into the source code of this particular node. Its encapsulated in #if WITH\_EDITOR Statement in Unreal Version 5.2 😅

 ![grafik](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/3/f/43ff57f91bd42865cb5c7d383fa3e15920771439.png)

The node “CopyMeshToStaticMesh” should or could have full runtime support. At least it is not clear from the the Geoemtry Scripting Reference.

Maybe it is somehow a missunderstanding that this node doesnt have full runtime support at the moment. [Thus in the reference](https://docs.unrealengine.com/5.2/en-US/geometry-script-reference-in-unreal-engine/) in the first table are some denoted that they running only in Editor. This Annotation is missing at CopyMeshToStaticMesh.:

 ![grafik](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/a/0/da03d52899060f08fb85ed23470f0f7afd8e65e2.png)

I know have implemented something that only works in Editor. Please Add Runtime Support that dont depends on the editor.

---

<div class="post-metadata">

**Author:** ![SimPro2023](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/simpro2023/32/708849_2.png) [@SimPro2023](https://forums.unrealengine.com/u/SimPro2023)\
**Post date:** [June 13, 2023, 2:59pm UTC](https://forums.unrealengine.com/t/runtime-support-for-copymeshtostaticmesh/1184532/2 "2023-06-13T14:59:26Z")

</div>

When will this node be available at runtime (not only in editor) ?  
Is this feature plannend or not plannend ?

![grafik](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/b/a/bbad2c290707e89f379376d1039684662f90ba16.png)

I am really happy about the geometry scripting functionalities.  
At the Moment “Copy Mesh to Static Mesh”  
will only work With\_Editor and not general at runtime:

“CopyMeshFromStaticMesh: Source Models are not available at Runtime”

---

<div class="post-metadata">

**Author:** ![rmsEG](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rmseg/32/629971_2.png) [@rmsEG](https://forums.unrealengine.com/u/rmsEG)\
**Post date:** [June 20, 2023, 2:10pm UTC](https://forums.unrealengine.com/t/runtime-support-for-copymeshtostaticmesh/1184532/3 "2023-06-20T14:10:34Z")

</div>

It is not currently possible to make CopyMeshToStaticMesh work with a cooked StaticMesh asset. A cooked asset cannot be modified or updated, even at the C++ level, this is not supported by Unreal Engine. Geometry Script is just a wrapper around Engine C++ functionality, so we can’t change this constraint at the Geometry Script level.

We have a concept of a ‘runtime’ static mesh in Unreal, and it would be possible to make CopyMeshToStaticMesh work with runtime-spawned Static Meshes (ie these are not Assets loaded from disk, but created entirely at Runtime). However currently Runtime Static Meshes have many of the limitations of dynamic meshes, ie no Lumen or Nanite support, and the only way to create them is by writing custom C++ code.

---

<div class="post-metadata">

**Author:** ![SimPro2023](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/simpro2023/32/708849_2.png) [@SimPro2023](https://forums.unrealengine.com/u/SimPro2023)\
**Post date:** [June 21, 2023, 8:09am UTC](https://forums.unrealengine.com/t/runtime-support-for-copymeshtostaticmesh/1184532/4 "2023-06-21T08:09:47Z")

</div>

For my Project this would be worth to think of. There are many geometry script functions for DynamicMesh i will depend on but also some basic function that work on Static Meshes, that i want to utilize. Socketsystem, maybe the better simulation perfomance of static meshes(only a presumption) with Collisions generated at start dynamically.

And after a Initializing and Loading Phase at runtime i really dont have to change the Mesh anymore. For the current Project the most basic graphical capabilities of Unreal are better than sufficent.

I have to try out more and think over it, maybe i will rely more onto the dynamic mesh actor and implement the missing basic functions that i miss out.

Thank you for your Reply and Clearification @rmsEG 💖

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [August 5, 2023, 1:52pm UTC](https://forums.unrealengine.com/t/runtime-support-for-copymeshtostaticmesh/1184532/6 "2023-08-05T13:52:43Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
