org.outernet.cesium-unity 1.15.3-linux.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (315) hide show
  1. package/CHANGES.md +420 -0
  2. package/CHANGES.md.meta +7 -0
  3. package/Editor/BuildCesiumForUnity.cs +186 -0
  4. package/Editor/BuildCesiumForUnity.cs.meta +11 -0
  5. package/Editor/Cesium3DTilesetEditor.cs +542 -0
  6. package/Editor/Cesium3DTilesetEditor.cs.meta +11 -0
  7. package/Editor/CesiumBingMapsRasterOverlayEditor.cs +66 -0
  8. package/Editor/CesiumBingMapsRasterOverlayEditor.cs.meta +11 -0
  9. package/Editor/CesiumCameraControllerEditor.cs +174 -0
  10. package/Editor/CesiumCameraControllerEditor.cs.meta +11 -0
  11. package/Editor/CesiumCameraManagerEditor.cs +65 -0
  12. package/Editor/CesiumCameraManagerEditor.cs.meta +11 -0
  13. package/Editor/CesiumCartographicPolygonEditor.cs +23 -0
  14. package/Editor/CesiumCartographicPolygonEditor.cs.meta +11 -0
  15. package/Editor/CesiumDebugColorizeTilesRasterOverlayEditor.cs +41 -0
  16. package/Editor/CesiumDebugColorizeTilesRasterOverlayEditor.cs.meta +11 -0
  17. package/Editor/CesiumEditor.asmdef +26 -0
  18. package/Editor/CesiumEditor.asmdef.meta +7 -0
  19. package/Editor/CesiumEditorStyle.cs +188 -0
  20. package/Editor/CesiumEditorStyle.cs.meta +11 -0
  21. package/Editor/CesiumEditorUtility.cs +394 -0
  22. package/Editor/CesiumEditorUtility.cs.meta +11 -0
  23. package/Editor/CesiumEditorWindow.cs +447 -0
  24. package/Editor/CesiumEditorWindow.cs.meta +11 -0
  25. package/Editor/CesiumFlyToControllerEditor.cs +76 -0
  26. package/Editor/CesiumFlyToControllerEditor.cs.meta +11 -0
  27. package/Editor/CesiumGeoreferenceEditor.cs +277 -0
  28. package/Editor/CesiumGeoreferenceEditor.cs.meta +11 -0
  29. package/Editor/CesiumGlobeAnchorEditor.cs +202 -0
  30. package/Editor/CesiumGlobeAnchorEditor.cs.meta +11 -0
  31. package/Editor/CesiumInspectorGUI.cs +187 -0
  32. package/Editor/CesiumInspectorGUI.cs.meta +11 -0
  33. package/Editor/CesiumIonAsset.cs +192 -0
  34. package/Editor/CesiumIonAsset.cs.meta +11 -0
  35. package/Editor/CesiumIonAssetsWindow.cs +257 -0
  36. package/Editor/CesiumIonAssetsWindow.cs.meta +11 -0
  37. package/Editor/CesiumIonRasterOverlayEditor.cs +87 -0
  38. package/Editor/CesiumIonRasterOverlayEditor.cs.meta +11 -0
  39. package/Editor/CesiumIonServerManager.cs +153 -0
  40. package/Editor/CesiumIonServerManager.cs.meta +11 -0
  41. package/Editor/CesiumIonServerSelector.cs +127 -0
  42. package/Editor/CesiumIonServerSelector.cs.meta +11 -0
  43. package/Editor/CesiumIonSession.cs +102 -0
  44. package/Editor/CesiumIonSession.cs.meta +11 -0
  45. package/Editor/CesiumPolygonRasterOverlayEditor.cs +102 -0
  46. package/Editor/CesiumPolygonRasterOverlayEditor.cs.meta +11 -0
  47. package/Editor/CesiumRasterOverlayEditor.cs +230 -0
  48. package/Editor/CesiumRasterOverlayEditor.cs.meta +11 -0
  49. package/Editor/CesiumSubSceneEditor.cs +201 -0
  50. package/Editor/CesiumSubSceneEditor.cs.meta +11 -0
  51. package/Editor/CesiumTileMapServiceRasterOverlayEditor.cs +88 -0
  52. package/Editor/CesiumTileMapServiceRasterOverlayEditor.cs.meta +11 -0
  53. package/Editor/CesiumWebMapServiceRasterOverlayEditor.cs +111 -0
  54. package/Editor/CesiumWebMapServiceRasterOverlayEditor.cs.meta +11 -0
  55. package/Editor/CesiumWebMapTileServiceRasterOverlayEditor.cs +277 -0
  56. package/Editor/CesiumWebMapTileServiceRasterOverlayEditor.cs.meta +3 -0
  57. package/Editor/CompileCesiumForUnityNative.cs +581 -0
  58. package/Editor/CompileCesiumForUnityNative.cs.meta +11 -0
  59. package/Editor/ConfigureReinterop.cs +255 -0
  60. package/Editor/ConfigureReinterop.cs.meta +11 -0
  61. package/Editor/Helpers.cs +102 -0
  62. package/Editor/Helpers.cs.meta +11 -0
  63. package/Editor/IonAssetsMultiColumnHeader.cs +45 -0
  64. package/Editor/IonAssetsMultiColumnHeader.cs.meta +11 -0
  65. package/Editor/IonAssetsTreeView.cs +214 -0
  66. package/Editor/IonAssetsTreeView.cs.meta +11 -0
  67. package/Editor/IonMissingAssetWindow.cs +65 -0
  68. package/Editor/IonMissingAssetWindow.cs.meta +11 -0
  69. package/Editor/IonTokenTroubleshootingWindow.cs +615 -0
  70. package/Editor/IonTokenTroubleshootingWindow.cs.meta +11 -0
  71. package/Editor/NativeDownloadHandler.cs +35 -0
  72. package/Editor/NativeDownloadHandler.cs.meta +11 -0
  73. package/Editor/QuickAddItem.cs +43 -0
  74. package/Editor/QuickAddItem.cs.meta +11 -0
  75. package/Editor/Resources/Cesium-128x128.png +0 -0
  76. package/Editor/Resources/Cesium-128x128.png.meta +98 -0
  77. package/Editor/Resources/Cesium-24x24.png +0 -0
  78. package/Editor/Resources/Cesium-24x24.png.meta +123 -0
  79. package/Editor/Resources/Cesium-64x64.png +0 -0
  80. package/Editor/Resources/Cesium-64x64.png.meta +98 -0
  81. package/Editor/Resources/Cesium-for-Unity-dark.png +0 -0
  82. package/Editor/Resources/Cesium-for-Unity-dark.png.meta +123 -0
  83. package/Editor/Resources/Cesium-for-Unity-light.png +0 -0
  84. package/Editor/Resources/Cesium-for-Unity-light.png.meta +123 -0
  85. package/Editor/Resources/Cesium-icon-16x16.png +0 -0
  86. package/Editor/Resources/Cesium-icon-16x16.png.meta +98 -0
  87. package/Editor/Resources/FontAwesome/attribution.txt +9 -0
  88. package/Editor/Resources/FontAwesome/attribution.txt.meta +7 -0
  89. package/Editor/Resources/FontAwesome/book-reader-solid.png +0 -0
  90. package/Editor/Resources/FontAwesome/book-reader-solid.png.meta +98 -0
  91. package/Editor/Resources/FontAwesome/book-reader-solid.svg +1 -0
  92. package/Editor/Resources/FontAwesome/book-reader-solid.svg.meta +7 -0
  93. package/Editor/Resources/FontAwesome/check-solid.png +0 -0
  94. package/Editor/Resources/FontAwesome/check-solid.png.meta +98 -0
  95. package/Editor/Resources/FontAwesome/check-solid.svg +1 -0
  96. package/Editor/Resources/FontAwesome/check-solid.svg.meta +7 -0
  97. package/Editor/Resources/FontAwesome/cloud-upload-alt-solid.png +0 -0
  98. package/Editor/Resources/FontAwesome/cloud-upload-alt-solid.png.meta +98 -0
  99. package/Editor/Resources/FontAwesome/cloud-upload-alt-solid.svg +1 -0
  100. package/Editor/Resources/FontAwesome/cloud-upload-alt-solid.svg.meta +7 -0
  101. package/Editor/Resources/FontAwesome/folder.png +0 -0
  102. package/Editor/Resources/FontAwesome/folder.png.meta +147 -0
  103. package/Editor/Resources/FontAwesome/folder.svg +5 -0
  104. package/Editor/Resources/FontAwesome/folder.svg.meta +7 -0
  105. package/Editor/Resources/FontAwesome/hands-helping-solid.png +0 -0
  106. package/Editor/Resources/FontAwesome/hands-helping-solid.png.meta +98 -0
  107. package/Editor/Resources/FontAwesome/hands-helping-solid.svg +1 -0
  108. package/Editor/Resources/FontAwesome/hands-helping-solid.svg.meta +7 -0
  109. package/Editor/Resources/FontAwesome/key-solid.png +0 -0
  110. package/Editor/Resources/FontAwesome/key-solid.png.meta +98 -0
  111. package/Editor/Resources/FontAwesome/key-solid.svg +1 -0
  112. package/Editor/Resources/FontAwesome/key-solid.svg.meta +7 -0
  113. package/Editor/Resources/FontAwesome/plus-solid.png +0 -0
  114. package/Editor/Resources/FontAwesome/plus-solid.png.meta +98 -0
  115. package/Editor/Resources/FontAwesome/plus-solid.svg +1 -0
  116. package/Editor/Resources/FontAwesome/plus-solid.svg.meta +7 -0
  117. package/Editor/Resources/FontAwesome/sign-out-alt-solid.png +0 -0
  118. package/Editor/Resources/FontAwesome/sign-out-alt-solid.png.meta +98 -0
  119. package/Editor/Resources/FontAwesome/sign-out-alt-solid.svg +1 -0
  120. package/Editor/Resources/FontAwesome/sign-out-alt-solid.svg.meta +7 -0
  121. package/Editor/Resources/FontAwesome/sync-alt-solid.png +0 -0
  122. package/Editor/Resources/FontAwesome/sync-alt-solid.png.meta +98 -0
  123. package/Editor/Resources/FontAwesome/sync-alt-solid.svg +1 -0
  124. package/Editor/Resources/FontAwesome/sync-alt-solid.svg.meta +7 -0
  125. package/Editor/Resources/FontAwesome/times-solid.png +0 -0
  126. package/Editor/Resources/FontAwesome/times-solid.png.meta +98 -0
  127. package/Editor/Resources/FontAwesome/times-solid.svg +1 -0
  128. package/Editor/Resources/FontAwesome/times-solid.svg.meta +7 -0
  129. package/Editor/Resources/FontAwesome.meta +8 -0
  130. package/Editor/Resources.meta +8 -0
  131. package/Editor/SelectIonTokenWindow.cs +249 -0
  132. package/Editor/SelectIonTokenWindow.cs.meta +11 -0
  133. package/Editor/arm64.meta +8 -0
  134. package/Editor/csc.rsp +1 -0
  135. package/Editor/csc.rsp.meta +7 -0
  136. package/Editor/libCesiumForUnityNative-Editor.so +0 -0
  137. package/Editor/libCesiumForUnityNative-Editor.so.meta +2 -0
  138. package/Editor/libCesiumForUnityNative-Runtime.so +0 -0
  139. package/Editor/libCesiumForUnityNative-Runtime.so.meta +2 -0
  140. package/Editor/x86_64.meta +8 -0
  141. package/Editor.meta +8 -0
  142. package/LICENSE +201 -0
  143. package/LICENSE.meta +7 -0
  144. package/Plugins/Standalone/libCesiumForUnityNative-Runtime.so +0 -0
  145. package/Plugins/Standalone/libCesiumForUnityNative-Runtime.so.meta +2 -0
  146. package/Plugins/Standalone.meta +8 -0
  147. package/Plugins.meta +8 -0
  148. package/README.md +39 -0
  149. package/README.md.meta +7 -0
  150. package/Reinterop.deps.json +172 -0
  151. package/Reinterop.deps.json.meta +7 -0
  152. package/Reinterop.dll +0 -0
  153. package/Reinterop.dll.meta +79 -0
  154. package/Runtime/Cesium3DTile.cs +37 -0
  155. package/Runtime/Cesium3DTile.cs.meta +11 -0
  156. package/Runtime/Cesium3DTileset.cs +788 -0
  157. package/Runtime/Cesium3DTileset.cs.meta +11 -0
  158. package/Runtime/Cesium3DTilesetLoadFailureDetails.cs +65 -0
  159. package/Runtime/Cesium3DTilesetLoadFailureDetails.cs.meta +11 -0
  160. package/Runtime/CesiumBackwardCompatibility.cs +163 -0
  161. package/Runtime/CesiumBackwardCompatibility.cs.meta +11 -0
  162. package/Runtime/CesiumBingMapsRasterOverlay.cs +72 -0
  163. package/Runtime/CesiumBingMapsRasterOverlay.cs.meta +11 -0
  164. package/Runtime/CesiumCameraController.cs +827 -0
  165. package/Runtime/CesiumCameraController.cs.meta +11 -0
  166. package/Runtime/CesiumCameraManager.cs +105 -0
  167. package/Runtime/CesiumCameraManager.cs.meta +11 -0
  168. package/Runtime/CesiumCartographicPolygon.cs +152 -0
  169. package/Runtime/CesiumCartographicPolygon.cs.meta +11 -0
  170. package/Runtime/CesiumCreditSystem.cs +343 -0
  171. package/Runtime/CesiumCreditSystem.cs.meta +11 -0
  172. package/Runtime/CesiumCreditSystemUI.cs +402 -0
  173. package/Runtime/CesiumCreditSystemUI.cs.meta +11 -0
  174. package/Runtime/CesiumDebugColorizeTilesRasterOverlay.cs +21 -0
  175. package/Runtime/CesiumDebugColorizeTilesRasterOverlay.cs.meta +11 -0
  176. package/Runtime/CesiumEllipsoid.cs +107 -0
  177. package/Runtime/CesiumEllipsoid.cs.meta +11 -0
  178. package/Runtime/CesiumFeature.cs +279 -0
  179. package/Runtime/CesiumFeature.cs.meta +11 -0
  180. package/Runtime/CesiumFeatureIdAttribute.cs +61 -0
  181. package/Runtime/CesiumFeatureIdAttribute.cs.meta +11 -0
  182. package/Runtime/CesiumFeatureIdSet.cs +165 -0
  183. package/Runtime/CesiumFeatureIdSet.cs.meta +11 -0
  184. package/Runtime/CesiumFeatureIdTexture.cs +68 -0
  185. package/Runtime/CesiumFeatureIdTexture.cs.meta +11 -0
  186. package/Runtime/CesiumFlyToController.cs +539 -0
  187. package/Runtime/CesiumFlyToController.cs.meta +11 -0
  188. package/Runtime/CesiumGeoreference.cs +628 -0
  189. package/Runtime/CesiumGeoreference.cs.meta +11 -0
  190. package/Runtime/CesiumGlobeAnchor.cs +664 -0
  191. package/Runtime/CesiumGlobeAnchor.cs.meta +11 -0
  192. package/Runtime/CesiumGlobeAnchorBackwardCompatibility0dot2dot0.cs +105 -0
  193. package/Runtime/CesiumGlobeAnchorBackwardCompatibility0dot2dot0.cs.meta +11 -0
  194. package/Runtime/CesiumIntMatN.cs +398 -0
  195. package/Runtime/CesiumIntMatN.cs.meta +11 -0
  196. package/Runtime/CesiumIntVecN.cs +525 -0
  197. package/Runtime/CesiumIntVecN.cs.meta +11 -0
  198. package/Runtime/CesiumIonRasterOverlay.cs +110 -0
  199. package/Runtime/CesiumIonRasterOverlay.cs.meta +11 -0
  200. package/Runtime/CesiumIonServer.cs +137 -0
  201. package/Runtime/CesiumIonServer.cs.meta +11 -0
  202. package/Runtime/CesiumMetadata.cs +33 -0
  203. package/Runtime/CesiumMetadata.cs.meta +11 -0
  204. package/Runtime/CesiumMetadataValue.cs +1764 -0
  205. package/Runtime/CesiumMetadataValue.cs.meta +11 -0
  206. package/Runtime/CesiumMetadataValueType.cs +203 -0
  207. package/Runtime/CesiumMetadataValueType.cs.meta +11 -0
  208. package/Runtime/CesiumModelMetadata.cs +26 -0
  209. package/Runtime/CesiumModelMetadata.cs.meta +11 -0
  210. package/Runtime/CesiumObjectPool.cs +74 -0
  211. package/Runtime/CesiumObjectPool.cs.meta +11 -0
  212. package/Runtime/CesiumObjectPools.cs +39 -0
  213. package/Runtime/CesiumObjectPools.cs.meta +11 -0
  214. package/Runtime/CesiumOriginShift.cs +146 -0
  215. package/Runtime/CesiumOriginShift.cs.meta +11 -0
  216. package/Runtime/CesiumPointCloudRenderer.cs +246 -0
  217. package/Runtime/CesiumPointCloudRenderer.cs.meta +11 -0
  218. package/Runtime/CesiumPointCloudShading.cs +76 -0
  219. package/Runtime/CesiumPointCloudShading.cs.meta +11 -0
  220. package/Runtime/CesiumPolygonRasterOverlay.cs +109 -0
  221. package/Runtime/CesiumPolygonRasterOverlay.cs.meta +11 -0
  222. package/Runtime/CesiumPrimitiveFeatures.cs +130 -0
  223. package/Runtime/CesiumPrimitiveFeatures.cs.meta +11 -0
  224. package/Runtime/CesiumPropertyArray.cs +64 -0
  225. package/Runtime/CesiumPropertyArray.cs.meta +11 -0
  226. package/Runtime/CesiumPropertyTable.cs +126 -0
  227. package/Runtime/CesiumPropertyTable.cs.meta +11 -0
  228. package/Runtime/CesiumPropertyTableProperty.cs +1734 -0
  229. package/Runtime/CesiumPropertyTableProperty.cs.meta +11 -0
  230. package/Runtime/CesiumRasterOverlay.cs +239 -0
  231. package/Runtime/CesiumRasterOverlay.cs.meta +11 -0
  232. package/Runtime/CesiumRasterOverlayLoadFailureDetails.cs +65 -0
  233. package/Runtime/CesiumRasterOverlayLoadFailureDetails.cs.meta +11 -0
  234. package/Runtime/CesiumRuntime.asmdef +32 -0
  235. package/Runtime/CesiumRuntime.asmdef.meta +7 -0
  236. package/Runtime/CesiumRuntime.cs +3 -0
  237. package/Runtime/CesiumRuntime.cs.meta +11 -0
  238. package/Runtime/CesiumRuntimeSettings.cs +188 -0
  239. package/Runtime/CesiumRuntimeSettings.cs.meta +11 -0
  240. package/Runtime/CesiumSampleHeightResult.cs +47 -0
  241. package/Runtime/CesiumSampleHeightResult.cs.meta +11 -0
  242. package/Runtime/CesiumSimplePlanarEllipsoidCurve.cs +93 -0
  243. package/Runtime/CesiumSimplePlanarEllipsoidCurve.cs.meta +11 -0
  244. package/Runtime/CesiumSubScene.cs +473 -0
  245. package/Runtime/CesiumSubScene.cs.meta +11 -0
  246. package/Runtime/CesiumTileExcluder.cs +47 -0
  247. package/Runtime/CesiumTileExcluder.cs.meta +11 -0
  248. package/Runtime/CesiumTileMapServiceRasterOverlay.cs +93 -0
  249. package/Runtime/CesiumTileMapServiceRasterOverlay.cs.meta +11 -0
  250. package/Runtime/CesiumWebMapServiceRasterOverlay.cs +129 -0
  251. package/Runtime/CesiumWebMapServiceRasterOverlay.cs.meta +11 -0
  252. package/Runtime/CesiumWebMapTileServiceRasterOverlay.cs +414 -0
  253. package/Runtime/CesiumWebMapTileServiceRasterOverlay.cs.meta +3 -0
  254. package/Runtime/CesiumWgs84Ellipsoid.cs +75 -0
  255. package/Runtime/CesiumWgs84Ellipsoid.cs.meta +11 -0
  256. package/Runtime/ConfigureReinterop.cs +926 -0
  257. package/Runtime/ConfigureReinterop.cs.meta +11 -0
  258. package/Runtime/Helpers.cs +122 -0
  259. package/Runtime/Helpers.cs.meta +11 -0
  260. package/Runtime/ICesiumRestartable.cs +17 -0
  261. package/Runtime/ICesiumRestartable.cs.meta +11 -0
  262. package/Runtime/NativeCoroutine.cs +28 -0
  263. package/Runtime/NativeCoroutine.cs.meta +11 -0
  264. package/Runtime/NativeDownloadHandler.cs +29 -0
  265. package/Runtime/NativeDownloadHandler.cs.meta +11 -0
  266. package/Runtime/Resources/CesiumCreditSystem.prefab +78 -0
  267. package/Runtime/Resources/CesiumCreditSystem.prefab.meta +7 -0
  268. package/Runtime/Resources/CesiumCreditSystemRuntimeTheme.tss +2 -0
  269. package/Runtime/Resources/CesiumCreditSystemRuntimeTheme.tss.meta +11 -0
  270. package/Runtime/Resources/CesiumCreditSystemUI.uxml +4 -0
  271. package/Runtime/Resources/CesiumCreditSystemUI.uxml.meta +10 -0
  272. package/Runtime/Resources/CesiumCreditSystemUIPanelSettings.asset +38 -0
  273. package/Runtime/Resources/CesiumCreditSystemUIPanelSettings.asset.meta +8 -0
  274. package/Runtime/Resources/CesiumDefaultTilesetMaterial.mat +232 -0
  275. package/Runtime/Resources/CesiumDefaultTilesetMaterial.mat.meta +8 -0
  276. package/Runtime/Resources/CesiumDefaultTilesetShader.shadergraph +14271 -0
  277. package/Runtime/Resources/CesiumDefaultTilesetShader.shadergraph.meta +10 -0
  278. package/Runtime/Resources/CesiumPointCloudShading.hlsl +156 -0
  279. package/Runtime/Resources/CesiumPointCloudShading.hlsl.meta +7 -0
  280. package/Runtime/Resources/CesiumPointCloudShadingMaterial.mat +125 -0
  281. package/Runtime/Resources/CesiumPointCloudShadingMaterial.mat.meta +8 -0
  282. package/Runtime/Resources/CesiumPointCloudShadingShader.shader +73 -0
  283. package/Runtime/Resources/CesiumPointCloudShadingShader.shader.meta +10 -0
  284. package/Runtime/Resources/CesiumRasterOverlay.shadersubgraph +2207 -0
  285. package/Runtime/Resources/CesiumRasterOverlay.shadersubgraph.meta +10 -0
  286. package/Runtime/Resources/CesiumSelectTexCoords.shadersubgraph +722 -0
  287. package/Runtime/Resources/CesiumSelectTexCoords.shadersubgraph.meta +10 -0
  288. package/Runtime/Resources/CesiumUnlitTilesetMaterial.mat +261 -0
  289. package/Runtime/Resources/CesiumUnlitTilesetMaterial.mat.meta +8 -0
  290. package/Runtime/Resources/CesiumUnlitTilesetShader.shadergraph +5873 -0
  291. package/Runtime/Resources/CesiumUnlitTilesetShader.shadergraph.meta +10 -0
  292. package/Runtime/Resources/DynamicCamera.prefab +253 -0
  293. package/Runtime/Resources/DynamicCamera.prefab.meta +7 -0
  294. package/Runtime/Resources/TransformTextureCoordinates.shadersubgraph +2171 -0
  295. package/Runtime/Resources/TransformTextureCoordinates.shadersubgraph.meta +10 -0
  296. package/Runtime/Resources/green1x1.png +0 -0
  297. package/Runtime/Resources/green1x1.png.meta +123 -0
  298. package/Runtime/Resources.meta +8 -0
  299. package/Runtime/TestGltfModel.cs +56 -0
  300. package/Runtime/TestGltfModel.cs.meta +11 -0
  301. package/Runtime/TestReinterop.cs +21 -0
  302. package/Runtime/TestReinterop.cs.meta +11 -0
  303. package/Runtime/UnityLifetime.cs +27 -0
  304. package/Runtime/UnityLifetime.cs.meta +11 -0
  305. package/Runtime/WaitForTask.cs +25 -0
  306. package/Runtime/WaitForTask.cs.meta +11 -0
  307. package/Runtime/csc.rsp +1 -0
  308. package/Runtime/csc.rsp.meta +7 -0
  309. package/Runtime.meta +8 -0
  310. package/ThirdParty.json +27 -0
  311. package/ThirdParty.json.meta +7 -0
  312. package/WGS84.asset +18 -0
  313. package/WGS84.asset.meta +8 -0
  314. package/package.json +29 -0
  315. package/package.json.meta +7 -0
@@ -0,0 +1,105 @@
1
+ using Unity.Mathematics;
2
+ using UnityEditor;
3
+ using UnityEngine;
4
+ using UnityEngine.Serialization;
5
+
6
+ namespace CesiumForUnity
7
+ {
8
+ [ExecuteInEditMode]
9
+ [AddComponentMenu("")]
10
+ [DefaultExecutionOrder(-1000000)]
11
+ internal class CesiumGlobeAnchorBackwardCompatibility0dot2dot0 : CesiumGlobeAnchor, IBackwardCompatibilityComponent<CesiumGlobeAnchor>
12
+ {
13
+ public enum CesiumGlobeAnchorPositionAuthorityBackwardCompatibility0dot1dot2
14
+ {
15
+ None,
16
+ LongitudeLatitudeHeight,
17
+ EarthCenteredEarthFixed,
18
+ UnityCoordinates
19
+ }
20
+
21
+ [FormerlySerializedAs("_adjustOrientationForGlobeWhenMoving")]
22
+ public bool _adjustOrientationForGlobeWhenMoving0dot2dot0 = false;
23
+ [FormerlySerializedAs("_detectTransformChanges")]
24
+ public bool _detectTransformChanges0dot2dot0 = false;
25
+ [FormerlySerializedAs("_positionAuthority")]
26
+ public CesiumGlobeAnchorPositionAuthorityBackwardCompatibility0dot1dot2 _positionAuthority0dot2dot0 = CesiumGlobeAnchorPositionAuthorityBackwardCompatibility0dot1dot2.None;
27
+ [FormerlySerializedAs("_latitude")]
28
+ public double _latitude0dot2dot0 = 0.0;
29
+ [FormerlySerializedAs("_longitude")]
30
+ public double _longitude0dot2dot0 = 0.0;
31
+ [FormerlySerializedAs("_height")]
32
+ public double _height0dot2dot0 = 0.0;
33
+ [FormerlySerializedAs("_ecefX")]
34
+ public double _ecefX0dot2dot0 = 0.0;
35
+ [FormerlySerializedAs("_ecefY")]
36
+ public double _ecefY0dot2dot0 = 0.0;
37
+ [FormerlySerializedAs("_ecefZ")]
38
+ public double _ecefZ0dot2dot0 = 0.0;
39
+ [FormerlySerializedAs("_unityX")]
40
+ public double _unityX0dot2dot0 = 0.0;
41
+ [FormerlySerializedAs("_unityY")]
42
+ public double _unityY0dot2dot0 = 0.0;
43
+ [FormerlySerializedAs("_unityZ")]
44
+ public double _unityZ0dot2dot0 = 0.0;
45
+
46
+ #if UNITY_EDITOR
47
+ [CustomEditor(typeof(CesiumGlobeAnchorBackwardCompatibility0dot2dot0))]
48
+ internal class CesiumGlobeAnchorBackwardCompatibility0dot2dot0Editor : Editor
49
+ {
50
+ public override void OnInspectorGUI()
51
+ {
52
+ if (GUILayout.Button("Upgrade"))
53
+ {
54
+ CesiumGlobeAnchorBackwardCompatibility0dot2dot0 o = (CesiumGlobeAnchorBackwardCompatibility0dot2dot0)this.target;
55
+ CesiumBackwardCompatibility<CesiumGlobeAnchor>.Upgrade(o);
56
+ }
57
+ }
58
+ }
59
+
60
+ void OnEnable()
61
+ {
62
+ CesiumBackwardCompatibility<CesiumGlobeAnchor>.Upgrade(this);
63
+ }
64
+ #endif
65
+
66
+ public string VersionToBeUpgraded => "v0.2.0";
67
+
68
+ public void Upgrade(GameObject gameObject, CesiumGlobeAnchor upgraded)
69
+ {
70
+ // Temporarily disable orientation adjustment so that we can set the position without
71
+ // risking rotating the object.
72
+ upgraded.adjustOrientationForGlobeWhenMoving = false;
73
+ upgraded.detectTransformChanges = false;
74
+
75
+ switch (this._positionAuthority0dot2dot0)
76
+ {
77
+ case CesiumGlobeAnchorPositionAuthorityBackwardCompatibility0dot1dot2.None:
78
+ // This shouldn't happen, but if it does, just leave the position at the default.
79
+ break;
80
+ case CesiumGlobeAnchorPositionAuthorityBackwardCompatibility0dot1dot2.LongitudeLatitudeHeight:
81
+ upgraded.longitudeLatitudeHeight = new double3(this._longitude0dot2dot0, this._latitude0dot2dot0, this._height0dot2dot0);
82
+ break;
83
+ case CesiumGlobeAnchorPositionAuthorityBackwardCompatibility0dot1dot2.EarthCenteredEarthFixed:
84
+ upgraded.positionGlobeFixed = new double3(this._ecefX0dot2dot0, this._ecefY0dot2dot0, this._ecefZ0dot2dot0);
85
+ break;
86
+ case CesiumGlobeAnchorPositionAuthorityBackwardCompatibility0dot1dot2.UnityCoordinates:
87
+ // Any backward compatibility for CesiumGeoreference must have a more negative
88
+ // DefaultExecutionOrder so that the real CesiumGeoreference is created first.
89
+ // If this component is not nested inside a CesiumGeoreference, converting Unity coordinates
90
+ // to ECEF is impossible, so just keep the default position.
91
+ CesiumGeoreference georeference = this.GetComponentInParent<CesiumGeoreference>();
92
+ if (georeference != null)
93
+ {
94
+ georeference.Initialize();
95
+ double3 ecef = georeference.TransformUnityPositionToEarthCenteredEarthFixed(new double3(this._unityX0dot2dot0, this._unityY0dot2dot0, this._unityZ0dot2dot0));
96
+ upgraded.positionGlobeFixed = ecef;
97
+ }
98
+ break;
99
+ }
100
+
101
+ upgraded.adjustOrientationForGlobeWhenMoving = this._adjustOrientationForGlobeWhenMoving0dot2dot0;
102
+ upgraded.detectTransformChanges = this._detectTransformChanges0dot2dot0;
103
+ }
104
+ }
105
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: f433d33c11d379a4a97ac9a1cdede88c
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -0,0 +1,398 @@
1
+ using System.Diagnostics;
2
+ using System;
3
+ using Unity.Mathematics;
4
+
5
+ namespace CesiumForUnity
6
+ {
7
+ /// <summary>
8
+ /// Represents a mat2x2 with signed integer components. This preserves the exact type
9
+ /// of the integer components so they can be properly converted (or not converted)
10
+ /// to other types.
11
+ /// </summary>
12
+ /// <remarks>
13
+ /// Internally, this is used to store all signed integer mat types, including i8mat2x2,
14
+ /// i16mat2x2, i32mat2x2, and i64mat2x2. The intended type is conveyed through CesiumMetadataComponentType.
15
+ /// </remarks>
16
+ internal struct CesiumIntMat2x2
17
+ {
18
+ public CesiumMetadataComponentType componentType
19
+ {
20
+ get; private set;
21
+ }
22
+
23
+ // Column-major order
24
+ public CesiumIntVec2 c0
25
+ {
26
+ get; private set;
27
+ }
28
+ public CesiumIntVec2 c1
29
+ {
30
+ get; private set;
31
+ }
32
+
33
+ public CesiumIntMat2x2(CesiumIntVec2 v0, CesiumIntVec2 v1)
34
+ {
35
+ Debug.Assert(v0.componentType == v1.componentType);
36
+ this.componentType = v0.componentType;
37
+ this.c0 = v0;
38
+ this.c1 = v1;
39
+ }
40
+ public CesiumIntMat2x2(int2 v0, int2 v1)
41
+ {
42
+ this.componentType = CesiumMetadataComponentType.Int32;
43
+ this.c0 = new CesiumIntVec2(v0);
44
+ this.c1 = new CesiumIntVec2(v1);
45
+ }
46
+
47
+ public CesiumIntVec2 this[int index]
48
+ {
49
+ get
50
+ {
51
+ switch (index)
52
+ {
53
+ case 0:
54
+ return this.c0;
55
+ case 1:
56
+ return this.c1;
57
+ default:
58
+ throw new System.IndexOutOfRangeException();
59
+ }
60
+ }
61
+ }
62
+ }
63
+
64
+ /// <summary>
65
+ /// Represents a mat3x3 with signed integer components. This preserves the exact type
66
+ /// of the integer components so they can be properly converted (or not converted)
67
+ /// to other types.
68
+ /// </summary>
69
+ /// <remarks>
70
+ /// Internally, this is used to store all signed integer mat types, including i8mat3x3,
71
+ /// i16mat3x3, i32mat3x3, and i64mat3x3. The intended type is conveyed through CesiumMetadataComponentType.
72
+ /// </remarks>
73
+ internal struct CesiumIntMat3x3
74
+ {
75
+ public CesiumMetadataComponentType componentType
76
+ {
77
+ get; private set;
78
+ }
79
+
80
+ // Column-major order
81
+ public CesiumIntVec3 c0
82
+ {
83
+ get; private set;
84
+ }
85
+ public CesiumIntVec3 c1
86
+ {
87
+ get; private set;
88
+ }
89
+ public CesiumIntVec3 c2
90
+ {
91
+ get; private set;
92
+ }
93
+
94
+ public CesiumIntMat3x3(CesiumIntVec3 v0, CesiumIntVec3 v1, CesiumIntVec3 v2)
95
+ {
96
+ Debug.Assert(v0.componentType == v1.componentType && v1.componentType == v2.componentType);
97
+ this.componentType = v0.componentType;
98
+ this.c0 = v0;
99
+ this.c1 = v1;
100
+ this.c2 = v2;
101
+ }
102
+
103
+ public CesiumIntMat3x3(int3 v0, int3 v1, int3 v2)
104
+ {
105
+ this.componentType = CesiumMetadataComponentType.Int32;
106
+ this.c0 = new CesiumIntVec3(v0);
107
+ this.c1 = new CesiumIntVec3(v1);
108
+ this.c2 = new CesiumIntVec3(v2);
109
+ }
110
+
111
+ public CesiumIntVec3 this[int index]
112
+ {
113
+ get
114
+ {
115
+ switch (index)
116
+ {
117
+ case 0:
118
+ return this.c0;
119
+ case 1:
120
+ return this.c1;
121
+ case 2:
122
+ return this.c2;
123
+ default:
124
+ throw new System.IndexOutOfRangeException();
125
+ }
126
+ }
127
+ }
128
+ }
129
+
130
+ /// <summary>
131
+ /// Represents a mat4x4 with signed integer components. This preserves the exact type
132
+ /// of the integer components so they can be properly converted (or not converted)
133
+ /// to other types.
134
+ /// </summary>
135
+ /// <remarks>
136
+ /// Internally, this is used to store all signed integer mat types, including i8mat4x4,
137
+ /// i16mat4x4, i32mat4x4, and i64mat4x4. The intended type is conveyed through CesiumMetadataComponentType.
138
+ /// </remarks>
139
+ internal struct CesiumIntMat4x4
140
+ {
141
+ public CesiumMetadataComponentType componentType
142
+ {
143
+ get; private set;
144
+ }
145
+
146
+ // Column-major order
147
+ public CesiumIntVec4 c0
148
+ {
149
+ get; private set;
150
+ }
151
+ public CesiumIntVec4 c1
152
+ {
153
+ get; private set;
154
+ }
155
+ public CesiumIntVec4 c2
156
+ {
157
+ get; private set;
158
+ }
159
+ public CesiumIntVec4 c3
160
+ {
161
+ get; private set;
162
+ }
163
+
164
+ public CesiumIntMat4x4(CesiumIntVec4 v0, CesiumIntVec4 v1, CesiumIntVec4 v2, CesiumIntVec4 v3)
165
+ {
166
+ Debug.Assert(v0.componentType == v1.componentType && v1.componentType == v2.componentType && v2.componentType == v3.componentType);
167
+ this.componentType = v0.componentType;
168
+ this.c0 = v0;
169
+ this.c1 = v1;
170
+ this.c2 = v2;
171
+ this.c3 = v3;
172
+ }
173
+
174
+ public CesiumIntMat4x4(int4 v0, int4 v1, int4 v2, int4 v3)
175
+ {
176
+ this.componentType = CesiumMetadataComponentType.Int32;
177
+ this.c0 = new CesiumIntVec4(v0);
178
+ this.c1 = new CesiumIntVec4(v1);
179
+ this.c2 = new CesiumIntVec4(v2);
180
+ this.c3 = new CesiumIntVec4(v3);
181
+ }
182
+
183
+ public CesiumIntVec4 this[int index]
184
+ {
185
+ get
186
+ {
187
+ switch (index)
188
+ {
189
+ case 0:
190
+ return this.c0;
191
+ case 1:
192
+ return this.c1;
193
+ case 2:
194
+ return this.c2;
195
+ case 3:
196
+ return this.c3;
197
+ default:
198
+ throw new System.IndexOutOfRangeException();
199
+ }
200
+ }
201
+ }
202
+ }
203
+
204
+ /// <summary>
205
+ /// Represents a mat2x2 with unsigned integer components. This preserves the accuracy of the integer
206
+ /// values, which could otherwise lose precision if represented as doubles.
207
+ /// </summary>
208
+ /// <remarks>
209
+ /// Internally, this is used to store all unsigned integer mat types, including u8mat2x2,
210
+ /// u16mat2x2, u32mat2x2, and u64mat2x2. The intended type is conveyed through CesiumMetadataComponentType.
211
+ /// </remarks>
212
+ internal struct CesiumUintMat2x2
213
+ {
214
+ public CesiumMetadataComponentType componentType
215
+ {
216
+ get; private set;
217
+ }
218
+
219
+ // Column-major order
220
+ public CesiumUintVec2 c0
221
+ {
222
+ get; private set;
223
+ }
224
+ public CesiumUintVec2 c1
225
+ {
226
+ get; private set;
227
+ }
228
+
229
+ public CesiumUintMat2x2(CesiumUintVec2 v0, CesiumUintVec2 v1)
230
+ {
231
+ Debug.Assert(v0.componentType == v1.componentType);
232
+ this.componentType = v0.componentType;
233
+ this.c0 = v0;
234
+ this.c1 = v1;
235
+ }
236
+
237
+ public CesiumUintMat2x2(uint2 v0, uint2 v1)
238
+ {
239
+ this.componentType = CesiumMetadataComponentType.Uint32;
240
+ this.c0 = new CesiumUintVec2(v0);
241
+ this.c1 = new CesiumUintVec2(v1);
242
+ }
243
+
244
+ public CesiumUintVec2 this[int index]
245
+ {
246
+ get
247
+ {
248
+ switch (index)
249
+ {
250
+ case 0:
251
+ return c0;
252
+ case 1:
253
+ return c1;
254
+ default:
255
+ throw new System.IndexOutOfRangeException();
256
+ }
257
+ }
258
+ }
259
+ }
260
+
261
+ /// <summary>
262
+ /// Represents a mat3x3 with unsigned integer components. This preserves the accuracy of the integer
263
+ /// values, which could otherwise lose precision if represented as doubles.
264
+ /// </summary>
265
+ /// <remarks>
266
+ /// Internally, this is used to store all unsigned integer mat types, including u8mat3x3,
267
+ /// u16mat3x3, u32mat3x3, and u64mat3x3. The intended type is conveyed through CesiumMetadataComponentType.
268
+ /// </remarks>
269
+ internal struct CesiumUintMat3x3
270
+ {
271
+ public CesiumMetadataComponentType componentType
272
+ {
273
+ get; private set;
274
+ }
275
+
276
+ // Column-major order
277
+ public CesiumUintVec3 c0
278
+ {
279
+ get; private set;
280
+ }
281
+ public CesiumUintVec3 c1
282
+ {
283
+ get; private set;
284
+ }
285
+ public CesiumUintVec3 c2
286
+ {
287
+ get; private set;
288
+ }
289
+
290
+ public CesiumUintMat3x3(CesiumUintVec3 v0, CesiumUintVec3 v1, CesiumUintVec3 v2)
291
+ {
292
+ Debug.Assert(v0.componentType == v1.componentType && v1.componentType == v2.componentType);
293
+ this.componentType = v0.componentType;
294
+ this.c0 = v0;
295
+ this.c1 = v1;
296
+ this.c2 = v2;
297
+ }
298
+
299
+ public CesiumUintMat3x3(uint3 v0, uint3 v1, uint3 v2)
300
+ {
301
+ this.componentType = CesiumMetadataComponentType.Uint32;
302
+ this.c0 = new CesiumUintVec3(v0);
303
+ this.c1 = new CesiumUintVec3(v1);
304
+ this.c2 = new CesiumUintVec3(v2);
305
+ }
306
+
307
+ public CesiumUintVec3 this[int index]
308
+ {
309
+ get
310
+ {
311
+ switch (index)
312
+ {
313
+ case 0:
314
+ return this.c0;
315
+ case 1:
316
+ return this.c1;
317
+ case 2:
318
+ return this.c2;
319
+ default:
320
+ throw new System.IndexOutOfRangeException();
321
+ }
322
+ }
323
+ }
324
+ }
325
+
326
+ /// <summary>
327
+ /// Represents a mat4x4 with unsigned integer components. This preserves the accuracy of the integer
328
+ /// values, which could otherwise lose precision if represented as doubles.
329
+ /// </summary>
330
+ /// <remarks>
331
+ /// Internally, this is used to store all unsigned integer mat types, including u8mat4x4,
332
+ /// u16mat4x4, u32mat4x4, and u64mat4x4. The intended type is conveyed through CesiumMetadataComponentType.
333
+ /// </remarks>
334
+ internal struct CesiumUintMat4x4
335
+ {
336
+ public CesiumMetadataComponentType componentType
337
+ {
338
+ get; private set;
339
+ }
340
+
341
+ // Column-major order
342
+ public CesiumUintVec4 c0
343
+ {
344
+ get; private set;
345
+ }
346
+ public CesiumUintVec4 c1
347
+ {
348
+ get; private set;
349
+ }
350
+ public CesiumUintVec4 c2
351
+ {
352
+ get; private set;
353
+ }
354
+ public CesiumUintVec4 c3
355
+ {
356
+ get; private set;
357
+ }
358
+
359
+ public CesiumUintMat4x4(CesiumUintVec4 v0, CesiumUintVec4 v1, CesiumUintVec4 v2, CesiumUintVec4 v3)
360
+ {
361
+ Debug.Assert(v0.componentType == v1.componentType && v1.componentType == v2.componentType && v2.componentType == v3.componentType);
362
+ this.componentType = v0.componentType;
363
+ this.c0 = v0;
364
+ this.c1 = v1;
365
+ this.c2 = v2;
366
+ this.c3 = v3;
367
+ }
368
+
369
+ public CesiumUintMat4x4(uint4 v0, uint4 v1, uint4 v2, uint4 v3)
370
+ {
371
+ this.componentType = CesiumMetadataComponentType.Uint32;
372
+ this.c0 = new CesiumUintVec4(v0);
373
+ this.c1 = new CesiumUintVec4(v1);
374
+ this.c2 = new CesiumUintVec4(v2);
375
+ this.c3 = new CesiumUintVec4(v3);
376
+ }
377
+
378
+ public CesiumUintVec4 this[int index]
379
+ {
380
+ get
381
+ {
382
+ switch (index)
383
+ {
384
+ case 0:
385
+ return this.c0;
386
+ case 1:
387
+ return this.c1;
388
+ case 2:
389
+ return this.c2;
390
+ case 3:
391
+ return this.c3;
392
+ default:
393
+ throw new System.IndexOutOfRangeException();
394
+ }
395
+ }
396
+ }
397
+ }
398
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: 10d3fc342a6ad9d4e9028d2c976238ab
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant: