using System; namespace UnityEditor.XR.ARKit { internal static class Json { [Serializable] public struct AuthorInfo { public int version; public string author; } [Serializable] public struct Filename { public string filename; } [Serializable] public struct ResourceGroup { public AuthorInfo info; public Filename[] resources; } [Serializable] public struct ImageProperties { public float width; } [Serializable] public struct ReferenceImage { public AuthorInfo info; public FilenameWithIdiom[] images; public ImageProperties properties; } [Serializable] public struct FilenameWithIdiom { public string filename; public string idiom; } [Serializable] public struct ObjectProperties { /// /// Preview filename, e.g., 'preview.jpg' /// public string preview; /// /// An array of 4 floats representing the quaternion (x, y, z, w) /// public float[] rotation; /// /// cv3dmap filename, e.g., "trackingData.cv3dmap" /// public string content; /// /// An array of 3 floats representing the translation (x, y, z) /// public float[] translation; /// /// The version of the properties, e.g., 1 /// public int version; } [Serializable] public struct ReferenceObject { public AuthorInfo info; public ObjectProperties properties; } } }