Will ARKit make Anchor.transform, a matrix_float4x4 Codable?

Hi,


I'm new to ARKit. I'm interested in setting some anchors when first starting an app and be able to restore them in a later session or if the session is interrupted.


I'm thinking visual cues that remain fixed or relatively close to the original starting assignments may help someone with some memory loss.


I have been trying to convert Anchor.center, extent, and transform to some Codable structs so their stored values can be encoded or decoded from JSON.


I'm wondering if ARKIT will help with making Anchor Codable.


Thank you.

Replies

Have you tried to make it conform to Codable via extension?