# Generate Mesh Data from Tracked Geo - UE5 Bug?

**URL:** <https://forums.unrealengine.com/t/generate-mesh-data-from-tracked-geo-ue5-bug/691142>\
**Category:** XR Development\
**Tags:** Mobile, unreal-engine, UE5-0, iOS, question\
**Created:** [November 15, 2022, 12:54pm UTC](https://forums.unrealengine.com/t/generate-mesh-data-from-tracked-geo-ue5-bug/691142 "2022-11-15T12:54:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![TTF\_eric1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TTF\_eric1](https://forums.unrealengine.com/u/TTF_eric1)\
**Post date:** [November 15, 2022, 12:54pm UTC](https://forums.unrealengine.com/t/generate-mesh-data-from-tracked-geo-ue5-bug/691142/1 "2022-11-15T12:54:55Z")

</div>

I have a project I’m trying to convert from 4.27 to 5.0.3.  
The problems that I’m having is that it looks to me that there is a bug in the Scene Reconstruction option in the AR Session. Basically the ARKit Mesh Geometry looks to be “invalid”

In the AR Session config I’m setting:  
_Generate Mesh Data from Tracked Geometry: On_  
_Use Mesh Data for Occlusion: On_  
_Track scene Objects: On_  
_Scene Reconstructions Method: Mesh Only_

in 4.27 I can use Get All AR Geometries by Class:ARkit Mesh Geometry to get an array of geometry objects that ARKit it creating. Then I can apply a material to these Underlining Mesh objects. Easy Peasy.

 ![Screenshot 2022-11-15 at 12.51.09 PM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/d/f/fdfb18962784880e63feed1bc5c331801c0c3f58.png)

However in 5.0.3, while I can still get an array of the objects ARkit is creating, when I attempt to apply a material to the Underlining Mesh object nothing happens.  
Additionally in the log I am seeing a lot of:  
_LogAppleARKit: Error: Mesh anchor contains incorrectly formatted vertex data!_

this all works fine in 4.27

thx-e  
UE 5.0.3  
Xcode 13.2.1
