I created a new project using the HandheldAR template in Unreal Engine 5.5.4. After that, I attempted to run it on Xcode, but encountered the following issue.
Device used: iPhone 15 Pro
Building and running HandheldARBlankMap as is
→ Successfully executed without any issues.
Enabling “Generate Mesh Data from Tracked Geometry” in D_ARSessionConfig and then building
→ When debugging via Xcode by connecting to the iPhone, the attached error occurs at the moment the app detects geometry after tapping “Begin Scan.”
Could the following error message in the image be related?
validateNewTexture:74: failed assertion `Offset of a buffer-backed texture with pixelFormat(MTLPixelFormatRGBA8Unorm) must be aligned to 64 bytes, found offset(32)’
There has been a bug in AppleARKitMeshData.cpp for ages that Epic has never fixed. Though I don’t recall anything about a texture error associated with it…
Not sure if this is the bug you are hitting, but, you can check out this posting for a simple fix