MergeMeshes causes crash on Android and iOS

Merging Skeletal Meshes using code in Docs or Skeletal Mergin Plugin.

Was using the SKM Merge code from Docs (Working with Modular Characters).
Was working fine in 4.26.
Then we upgraded to 5.1, and made appropriate changes to the code for 5.1 changes.
Crashing still.
Then found the plugin, which removes our own implementation of code, and yet the result is the same.

Step 1: enable Skeletal Merging Plugin
Step 2: use MergeMeshes
Result: crash on Android and iOS //Windows and Mac work fine

image

Using SKMs from Stylized Characters from the Marketplace //our own SKMs hadn’t worked.

Interesting find!
So actually the Plugin works on Android if the Project is Blueprints only.
As soon as converted it to C++ (added an Actor), the function broke.
Adding it again works, but the build won’t succeed, and opening the project again will brake it again.

Tried it 2x in new Projects.

Does this replicate for anyone else?

It was happening only for SKMs that were already imported, not new meshes.
Just trial and error and for us ForDistribution=True worked.

Hope none ever have to go through it.

1 Like