SW 중심대학 OSS GIT 서버 박건태, 이승준, 고기완, 이준호 새로운 배포
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

84 lines
2.0 KiB

4 years ago
  1. using System;
  2. namespace UnityEditor.XR.ARKit
  3. {
  4. internal static class Json
  5. {
  6. [Serializable]
  7. public struct AuthorInfo
  8. {
  9. public int version;
  10. public string author;
  11. }
  12. [Serializable]
  13. public struct Filename
  14. {
  15. public string filename;
  16. }
  17. [Serializable]
  18. public struct ResourceGroup
  19. {
  20. public AuthorInfo info;
  21. public Filename[] resources;
  22. }
  23. [Serializable]
  24. public struct ImageProperties
  25. {
  26. public float width;
  27. }
  28. [Serializable]
  29. public struct ReferenceImage
  30. {
  31. public AuthorInfo info;
  32. public FilenameWithIdiom[] images;
  33. public ImageProperties properties;
  34. }
  35. [Serializable]
  36. public struct FilenameWithIdiom
  37. {
  38. public string filename;
  39. public string idiom;
  40. }
  41. [Serializable]
  42. public struct ObjectProperties
  43. {
  44. /// <summary>
  45. /// Preview filename, e.g., 'preview.jpg'
  46. /// </summary>
  47. public string preview;
  48. /// <summary>
  49. /// An array of 4 floats representing the quaternion (x, y, z, w)
  50. /// </summary>
  51. public float[] rotation;
  52. /// <summary>
  53. /// cv3dmap filename, e.g., "trackingData.cv3dmap"
  54. /// </summary>
  55. public string content;
  56. /// <summary>
  57. /// An array of 3 floats representing the translation (x, y, z)
  58. /// </summary>
  59. public float[] translation;
  60. /// <summary>
  61. /// The version of the properties, e.g., 1
  62. /// </summary>
  63. public int version;
  64. }
  65. [Serializable]
  66. public struct ReferenceObject
  67. {
  68. public AuthorInfo info;
  69. public ObjectProperties properties;
  70. }
  71. }
  72. }