get_mesh_triangle_count
Count triangles in a Unreal Engine static mesh at a given LOD and return the canonical triangle ID count for that mesh. Use it to verify mesh complexity or detect triangle ID gaps.
Instructions
Count the triangles in a static mesh via UGeometryScriptLibrary_MeshQueryFunctions::GetNumTriangleIDs. This is the canonical triangle count after copy-from-asset; GetTriangleCount is also surfaced on UDynamicMesh directly (always == NumTriangleIDs for a freshly copied mesh).
Returns: { static_mesh_path, lod_index, triangle_count, triangle_id_count, has_triangle_id_gaps }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lod_index | No | Optional LOD index to query (default 0) | |
| static_mesh_path | Yes | Content path to the UStaticMesh asset |