I’m using Geometry Script (UE 5.3.2) to generate geometries from polygons that I get from ArcGIS Feature Servers (using VaRest). This works fine in the Editor, but when I package the application, the geometries no longer show up.
For troubleshooting I made a very simple BluePrint with DynamicMeshActor as parent (the documentation says that GeneratedDynamicMeshActor will not work for this) and a simple GetDynamicMesh->Reset->AppendBox in the Construction Script. This BluePrint can be dragged into the level, works fine. Spawned from another BluePrint in BeginPlay, and played in the Editor, works fine. Packaged game…the BP (with DynamicMeshActor) that was dragged into the level shows up, but spawning it from another BP does not work.
I’ve spawned lots of other actor types before, so it seems like it’s something specific for DynamicMesh? At first I was spawning DynamicMeshComponents into a regular Actor BluePrint (which also worked fine in the Editor), but the (lack of) behaviour is identical.
I’m really stuck and frustrated here, I’d appreciate any and all input, if anyone has even the loosest idea of something that might help?
I just realized that I’m also trying to spawn some objects that are NOT DynamicMesh actors/components, and these are also not showing up in the packaged game! I guess that means that my problem is more general and not really related to DynamicMesh as such!? These other objects are spawned as regular Static Mesh Components.
Today I managed to spawn some DynamicMesh components from a Packaged/Runtime build. The thing that finally seemed to change something was when I moved the DynamicMesh stuff to a custom Function, although I’m not sure why that would change anything? Before, the nodes were in the Event Graph attached to some VaRest Callback events.
My bad, it turns out the problem was something else; I was setting a parameter of the DynamicMesh objects (just the z-transform actually) from a source that was not available at runtime, because I had foolishly marked it as “Is Editor Only”…duh. Sorry for wasting your time! 