BuildfromStaticMeshDescriptions Gives Fatal Error in Packaged Build (UE5-01)

We work on runtime pivot center system. In 4.27, we could use EditableMesh but as you know it deprecated in UE5. So, we tried other things. Geometry scripting functions are mostly editor only and MeshConversion functions such as FDynamicMeshToMeshDescription::Convert gives fatal error. So we went purely StaticMeshDescription based solution.

It works correctly in editor (both PIE and Standalone) but it gives fatal error in packaged projects. Package operation’s itself doesn’t give an error, btw. Running project gives error.

We also submitted that issue but if you have a suggestion, we will appreciate.

Our code is this:

In the BuildFromStaticMeshDescriptions() there is quite a bit of code that doesn’t get called when packaged - I had problems until I manually called newMesh->CommitMeshDescription(x); after what I was doing.

UE5 is moving away from RawMeshes too - I got stung with an exception trying to build the meshes unless I emptied the data from it (different method of building the meshes):

srcMod.RawMeshBulkData->Empty();

I don’t know if either of these will help in your situation but may be somewhere to look…

I don’t know about RawMesh but also I don’t think they moving away from MeshDescriptions at least in short term. For example I looked at “Copy Mesh from Static Mesh” node and it uses MeshDesciptions with MeshConversion

1 Like

Yes, not the MeshDescriptions - just the RawMesh…

I did that vertex position with vertex buffer with Epic stuff’s suggestion about my reported issue.