Geometry Script: Vertex Count differs between Editor/Packaged

Hey,

The vertex count seems to differ between Editor and Packaged version. Very easy way to reproduce (in UE 5.4 and 5.5):

  • Create a blank new project
  • Activate Geometry Script Plugin (if not already)
  • Create / Import any Static Mesh (simple Box will do) and activate “Allow CPU Access”
  • Create Blueprint “Dynamic Mesh Actor”
  • Put in following code (standard procedure to setup “Copy Mesh from Static Mesh”):

  • Compare “Num Selected” in Editor vs. Packaged (via Widget or whatever).

In the packaged version it shows me the “official” number from when you hover over the Static Mesh in the Unreal Editor: 24 Vertices for a Box created in Unreal. It shows 8 in the Editor version. Similar discrepancies for every other Mesh I tried - imported and created in Unreal. Triangle count on the other hand is the same.

I suspect there is a difference in count because of split vertices or something? But I can’t figure out why it would use different methods for counting in the Editor than in Packaged.

Thanks.