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,447 @@
1
+ using Reinterop;
2
+ using System;
3
+ using UnityEngine;
4
+ using UnityEditor;
5
+ using System.Collections.Generic;
6
+ using System.Linq;
7
+ using UnityEngine.Networking;
8
+
9
+ namespace CesiumForUnity
10
+ {
11
+ [ReinteropNativeImplementation("CesiumForUnityNative::CesiumEditorWindowImpl", "CesiumEditorWindowImpl.h")]
12
+ public partial class CesiumEditorWindow : EditorWindow
13
+ {
14
+ public static CesiumEditorWindow currentWindow = null;
15
+
16
+ [MenuItem("Cesium/Cesium")]
17
+ public static void ShowWindow()
18
+ {
19
+ // If no existing window, make a new one docked next to the Hierarchy window.
20
+ if (currentWindow == null)
21
+ {
22
+ Type siblingWindow = Type.GetType("UnityEditor.SceneHierarchyWindow,UnityEditor.dll");
23
+ currentWindow = GetWindow<CesiumEditorWindow>(new Type[] { siblingWindow });
24
+
25
+ }
26
+
27
+ currentWindow.Show();
28
+ currentWindow.Focus();
29
+ }
30
+
31
+ void OnEnable()
32
+ {
33
+ this._serverSelector = new CesiumIonServerSelector(this);
34
+
35
+ // Load the icon separately from the other resources.
36
+ Texture2D icon = Resources.Load<Texture2D>("Cesium-64x64");
37
+ icon.wrapMode = TextureWrapMode.Clamp;
38
+ this.titleContent = new GUIContent("Cesium", icon);
39
+ }
40
+
41
+ private void OnDisable()
42
+ {
43
+ this._serverSelector.Dispose();
44
+ this._serverSelector = null;
45
+ }
46
+
47
+ private bool _isIonConnected = false;
48
+ private bool _isIonConnecting = false;
49
+ private bool _isIonProfileLoaded = false;
50
+ private bool _isIonLoadingProfile = false;
51
+ private bool _isAuthenticationRequired = true;
52
+ private CesiumIonServerSelector _serverSelector;
53
+
54
+ private Vector2 _scrollPosition = Vector2.zero;
55
+
56
+ void OnGUI()
57
+ {
58
+ // OnGUI is called for multiple events, including the Layout
59
+ // and Repaint events. If the ion connection status changes
60
+ // between these events, the UI will adapt to the change.
61
+ // Unity will log an error because of the different layout.
62
+ // To avoid this, we only check the connection variables when
63
+ // OnGUI is invoked in the Layout event.
64
+ if (Event.current.type == EventType.Layout)
65
+ {
66
+ CesiumIonSession ion = CesiumIonServerManager.instance.currentSession;
67
+ this._isIonConnected = ion.IsConnected();
68
+ this._isIonConnecting = ion.IsConnecting();
69
+ this._isIonProfileLoaded = ion.IsProfileLoaded();
70
+ this._isIonLoadingProfile = ion.IsLoadingProfile();
71
+ this._isAuthenticationRequired = ion.IsAuthenticationRequired();
72
+ }
73
+
74
+ GUILayout.Space(5);
75
+ this._serverSelector.OnGUI();
76
+ this.DrawCesiumToolbar();
77
+
78
+ this._scrollPosition = EditorGUILayout.BeginScrollView(this._scrollPosition);
79
+ this.DrawQuickAddBasicAssetsPanel();
80
+
81
+ GUILayout.Space(10);
82
+ if (this._isIonConnected)
83
+ {
84
+ this.DrawQuickAddIonAssetsPanel();
85
+ }
86
+ else
87
+ {
88
+ this.DrawIonLoginPanel();
89
+ }
90
+
91
+ this.DrawVersion();
92
+ EditorGUILayout.EndScrollView();
93
+
94
+
95
+ // Force the window to repaint if the cursor is hovered over it.
96
+ // By default, it only repaints sporadically, so the hover and
97
+ // selection behavior will appear delayed.
98
+ if (EditorWindow.mouseOverWindow == this)
99
+ {
100
+ this.Repaint();
101
+ }
102
+ }
103
+
104
+ public enum ToolbarButton
105
+ {
106
+ Add,
107
+ Upload,
108
+ Token,
109
+ Learn,
110
+ Help,
111
+ SignOut,
112
+ }
113
+
114
+ void DrawToolbarButton(string name, ToolbarButton button, string tooltip, bool enableForIonOnly, Action func)
115
+ {
116
+ GUIContent content = new GUIContent(name, CesiumEditorStyle.toolbarIcons[button], tooltip);
117
+ GUIStyle style = CesiumEditorStyle.toolbarButtonStyle;
118
+
119
+ if (enableForIonOnly && !this._isIonConnected)
120
+ {
121
+ GUI.color = Color.grey;
122
+ style = CesiumEditorStyle.toolbarButtonDisabledStyle;
123
+ }
124
+
125
+ if (GUILayout.Button(content, style))
126
+ {
127
+ if (!enableForIonOnly || this._isIonConnected)
128
+ {
129
+ func();
130
+ }
131
+ }
132
+
133
+ GUI.color = Color.white;
134
+ }
135
+
136
+ void DrawCesiumToolbar()
137
+ {
138
+ GUILayout.BeginHorizontal(CesiumEditorStyle.toolbarStyle);
139
+ this.DrawToolbarButton(
140
+ "Add",
141
+ ToolbarButton.Add,
142
+ "Add a tileset from Cesium ion to this scene",
143
+ true,
144
+ this.AddFromIon);
145
+ this.DrawToolbarButton(
146
+ "Upload",
147
+ ToolbarButton.Upload,
148
+ "Upload a tileset to Cesium ion to process it for efficient streaming to Cesium for Unity",
149
+ true,
150
+ this.UploadToIon);
151
+
152
+ EditorGUI.BeginDisabledGroup(!this._isAuthenticationRequired);
153
+ this.DrawToolbarButton(
154
+ "Token",
155
+ ToolbarButton.Token,
156
+ this._isAuthenticationRequired ? "Select or create a token to use to access Cesium ion assets" : "Tokens are disabled for Cesium ion servers running in single-user mode.",
157
+ false,
158
+ this.SetToken);
159
+ EditorGUI.EndDisabledGroup();
160
+
161
+ this.DrawToolbarButton(
162
+ "Learn",
163
+ ToolbarButton.Learn,
164
+ "Open Cesium for Unity tutorials and learning resources",
165
+ false,
166
+ this.OpenDocumentation);
167
+ this.DrawToolbarButton(
168
+ "Help",
169
+ ToolbarButton.Help,
170
+ "Search for existing questions or ask a new question on the Cesium Community Forum",
171
+ false,
172
+ this.OpenSupport);
173
+ this.DrawToolbarButton(
174
+ "Sign Out",
175
+ ToolbarButton.SignOut,
176
+ "Sign out of Cesium ion",
177
+ true,
178
+ this.SignOutOfIon);
179
+ GUILayout.EndHorizontal();
180
+ }
181
+
182
+ private readonly QuickAddItem[] _basicAssets = new[]
183
+ {
184
+ new QuickAddItem(
185
+ QuickAddItemType.BlankTileset,
186
+ "Blank 3D Tiles Tileset",
187
+ "An empty tileset that can be configured to show Cesium ion assets " +
188
+ "or tilesets from other sources.",
189
+ "Cesium3DTileset",
190
+ -1,
191
+ "",
192
+ -1),
193
+ new QuickAddItem(
194
+ QuickAddItemType.DynamicCamera,
195
+ "Dynamic Camera",
196
+ "A free camera that can be used to intuitively navigate in a " +
197
+ "geospatial environment.",
198
+ "",
199
+ -1,
200
+ "",
201
+ -1),
202
+ #if UNITY_2022_2_OR_NEWER
203
+ new QuickAddItem(
204
+ QuickAddItemType.CartographicPolygon,
205
+ "Cesium Cartographic Polygon",
206
+ "A spline-based component that can be used to draw out regions for use with clipping or other material effects.",
207
+ "",
208
+ -1,
209
+ "",
210
+ -1)
211
+ #endif
212
+ };
213
+
214
+ void DrawQuickAddBasicAssetsPanel()
215
+ {
216
+ GUILayout.Label("Quick Add Basic Assets", CesiumEditorStyle.subheaderStyle);
217
+ GUIContent addButtonContent = new GUIContent(CesiumEditorStyle.quickAddIcon, "Add this item to the level");
218
+
219
+ for (int i = 0; i < this._basicAssets.Length; i++)
220
+ {
221
+ GUILayout.BeginHorizontal(CesiumEditorStyle.quickAddItemStyle);
222
+ GUILayout.Box(
223
+ new GUIContent(
224
+ this._basicAssets[i].name,
225
+ this._basicAssets[i].tooltip),
226
+ EditorStyles.wordWrappedLabel);
227
+ GUILayout.FlexibleSpace();
228
+ if (GUILayout.Button(addButtonContent, CesiumEditorStyle.quickAddButtonStyle))
229
+ {
230
+ this.QuickAddAsset(this._basicAssets[i]);
231
+ }
232
+ GUILayout.EndHorizontal();
233
+ }
234
+
235
+ // add other options as they come up
236
+ }
237
+ private void QuickAddAsset(QuickAddItem item)
238
+ {
239
+ switch (item.type)
240
+ {
241
+ case QuickAddItemType.IonTileset:
242
+ AddAssetFromIon(
243
+ item.name,
244
+ item.tilesetName,
245
+ item.tilesetId,
246
+ item.overlayName,
247
+ item.overlayId);
248
+ break;
249
+ case QuickAddItemType.BlankTileset:
250
+ Cesium3DTileset blankTileset =
251
+ CesiumEditorUtility.CreateTileset(item.tilesetName, 0);
252
+ Selection.activeGameObject = blankTileset.gameObject;
253
+ break;
254
+ case QuickAddItemType.DynamicCamera:
255
+ CesiumCameraController dynamicCamera =
256
+ CesiumEditorUtility.CreateDynamicCamera();
257
+ Selection.activeGameObject = dynamicCamera.gameObject;
258
+ break;
259
+ case QuickAddItemType.CartographicPolygon:
260
+ CesiumCartographicPolygon cartographicPolygon =
261
+ CesiumEditorUtility.CreateCartographicPolygon();
262
+ Selection.activeGameObject = cartographicPolygon.gameObject;
263
+ break;
264
+ default:
265
+ break;
266
+ }
267
+
268
+ EditorApplication.ExecuteMenuItem("Window/General/Hierarchy");
269
+ }
270
+
271
+ private partial void AddAssetFromIon(
272
+ string name,
273
+ string tilesetName,
274
+ long tilesetID,
275
+ string overlayName,
276
+ long overlayID);
277
+
278
+ void DrawQuickAddIonAssetsPanel()
279
+ {
280
+ GUILayout.Label("Quick Add Cesium ion Assets", CesiumEditorStyle.subheaderStyle);
281
+ GUIContent addButtonContent = new GUIContent(
282
+ CesiumEditorStyle.quickAddIcon,
283
+ "Add this item to the level");
284
+
285
+ if (CesiumIonServerManager.instance.currentSession.IsLoadingDefaults())
286
+ {
287
+ GUILayout.BeginHorizontal(CesiumEditorStyle.quickAddItemStyle);
288
+ GUILayout.Box(new GUIContent(
289
+ "Loading...",
290
+ "The list of Quick Add assets is being retrieved from the server."),
291
+ EditorStyles.wordWrappedLabel);
292
+ GUILayout.FlexibleSpace();
293
+ GUILayout.EndHorizontal();
294
+ }
295
+
296
+ List<QuickAddItem> assets = CesiumIonServerManager.instance.currentSession.GetQuickAddItems();
297
+ for (int i = 0; i < assets.Count; i++)
298
+ {
299
+ GUILayout.BeginHorizontal(CesiumEditorStyle.quickAddItemStyle);
300
+ GUILayout.Box(new GUIContent(
301
+ assets[i].name,
302
+ assets[i].tooltip),
303
+ EditorStyles.wordWrappedLabel);
304
+ GUILayout.FlexibleSpace();
305
+ if (GUILayout.Button(addButtonContent, CesiumEditorStyle.quickAddButtonStyle))
306
+ {
307
+ this.QuickAddAsset(assets[i]);
308
+ }
309
+ GUILayout.EndHorizontal();
310
+ }
311
+ }
312
+
313
+ void DrawIonLoginPanel()
314
+ {
315
+ Texture2D logo = EditorGUIUtility.isProSkin ?
316
+ CesiumEditorStyle.cesiumForUnityLogoLight :
317
+ CesiumEditorStyle.cesiumForUnityLogoDark;
318
+ GUIContent logoContent = new GUIContent(logo);
319
+
320
+ GUILayout.BeginHorizontal();
321
+ GUILayout.FlexibleSpace();
322
+ EditorGUILayout.LabelField(
323
+ logoContent,
324
+ GUILayout.Height(175));
325
+ GUILayout.FlexibleSpace();
326
+ GUILayout.EndHorizontal();
327
+
328
+ GUILayout.Space(10);
329
+
330
+ EditorGUILayout.LabelField("Access global high - resolution 3D content, " +
331
+ "including photogrammetry, terrain, imagery, and buildings. " +
332
+ "Bring your own data for tiling, hosting, and streaming to Unity.",
333
+ EditorStyles.wordWrappedLabel);
334
+
335
+ GUILayout.Space(10);
336
+
337
+ GUILayout.BeginHorizontal();
338
+ GUILayout.FlexibleSpace();
339
+
340
+ string label = this._isIonConnecting ? "Cancel Connecting" : "Connect to Cesium ion";
341
+ if (GUILayout.Button(label, CesiumEditorStyle.cesiumButtonStyle))
342
+ {
343
+ CesiumIonSession session = CesiumIonServerManager.instance.currentSession;
344
+ if (session.IsConnecting())
345
+ {
346
+ // Cancel the existing request by visiting the redirect URL.
347
+ UnityWebRequest.Get(session.GetRedirectUrl()).SendWebRequest();
348
+ }
349
+ else
350
+ {
351
+ // Initiate a new connection
352
+ session.Connect();
353
+ }
354
+ }
355
+ GUILayout.FlexibleSpace();
356
+ GUILayout.EndHorizontal();
357
+
358
+ if (this._isIonConnecting)
359
+ {
360
+ EditorGUILayout.LabelField(
361
+ "Waiting for you to sign into Cesium ion with your web browser...",
362
+ EditorStyles.wordWrappedLabel);
363
+
364
+ string authorizeUrl = CesiumIonServerManager.instance.currentSession.GetAuthorizeUrl();
365
+ if (EditorGUILayout.LinkButton("Open web browser again"))
366
+ {
367
+ Application.OpenURL(authorizeUrl);
368
+ }
369
+ GUILayout.Space(5);
370
+ EditorGUILayout.LabelField(
371
+ "Or copy the URL below into your web browser",
372
+ EditorStyles.wordWrappedLabel);
373
+
374
+ GUILayout.BeginHorizontal();
375
+ EditorGUILayout.SelectableLabel(
376
+ authorizeUrl,
377
+ EditorStyles.textField,
378
+ GUILayout.Height(EditorGUIUtility.singleLineHeight));
379
+
380
+ if (GUILayout.Button("Copy To Clipboard", GUILayout.ExpandWidth(false)))
381
+ {
382
+ CopyLinkToClipboard(authorizeUrl);
383
+ }
384
+ GUILayout.EndHorizontal();
385
+ }
386
+ }
387
+
388
+ void DrawVersion()
389
+ {
390
+ UnityEditor.PackageManager.PackageInfo package = UnityEditor.PackageManager.PackageInfo.GetAllRegisteredPackages().FirstOrDefault(package => package.name == "com.cesium.unity");
391
+
392
+ GUILayout.FlexibleSpace();
393
+ EditorGUILayout.BeginHorizontal();
394
+ GUILayout.FlexibleSpace();
395
+ GUIContent version = new GUIContent("v" + package.version, "Open the Cesium for Unity changelog in your browser");
396
+ if (EditorGUILayout.LinkButton(version))
397
+ {
398
+ Application.OpenURL("https://github.com/CesiumGS/cesium-unity/blob/main/CHANGES.md");
399
+ }
400
+ EditorGUILayout.EndHorizontal();
401
+
402
+ EditorGUILayout.Space(5);
403
+ }
404
+
405
+ void AddFromIon()
406
+ {
407
+ CesiumIonAssetsWindow.ShowWindow();
408
+ }
409
+
410
+ void UploadToIon()
411
+ {
412
+ Application.OpenURL("https://cesium.com/ion/addasset");
413
+ }
414
+
415
+ void SetToken()
416
+ {
417
+ SelectIonTokenWindow.ShowWindow(CesiumIonServerManager.instance.current);
418
+ }
419
+
420
+ void OpenDocumentation()
421
+ {
422
+ Application.OpenURL("https://cesium.com/docs");
423
+ }
424
+
425
+ void OpenSupport()
426
+ {
427
+ Application.OpenURL("https://community.cesium.com/");
428
+ }
429
+
430
+ void SignOutOfIon()
431
+ {
432
+ CesiumIonSession session = CesiumIonServerManager.instance.currentSession;
433
+ session.Disconnect();
434
+ }
435
+
436
+ void CopyLinkToClipboard(string link)
437
+ {
438
+ EditorGUIUtility.systemCopyBuffer = link;
439
+ }
440
+
441
+ void VisitIon()
442
+ {
443
+ Application.OpenURL("https://cesium.com/ion");
444
+ }
445
+ }
446
+
447
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: 540d411cf78781146b48cb8d19615daf
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,76 @@
1
+ using UnityEditor;
2
+ using UnityEngine;
3
+
4
+ namespace CesiumForUnity
5
+ {
6
+ [CustomEditor(typeof(CesiumFlyToController))]
7
+ public class CesiumFlyToControllerEditor : Editor
8
+ {
9
+ private SerializedProperty _flyToAltitudeProfileCurve;
10
+ private SerializedProperty _flyToProgressCurve;
11
+ private SerializedProperty _flyToMaximumAltitudeCurve;
12
+ private SerializedProperty _flyToDuration;
13
+ private SerializedProperty _flyToGranularityDegrees;
14
+
15
+ private void OnEnable()
16
+ {
17
+ this._flyToAltitudeProfileCurve =
18
+ this.serializedObject.FindProperty("_flyToAltitudeProfileCurve");
19
+ this._flyToProgressCurve =
20
+ this.serializedObject.FindProperty("_flyToProgressCurve");
21
+ this._flyToMaximumAltitudeCurve =
22
+ this.serializedObject.FindProperty("_flyToMaximumAltitudeCurve");
23
+ this._flyToDuration =
24
+ this.serializedObject.FindProperty("_flyToDuration");
25
+ this._flyToGranularityDegrees =
26
+ this.serializedObject.FindProperty("_flyToGranularityDegrees");
27
+ }
28
+
29
+ public override void OnInspectorGUI()
30
+ {
31
+ this.serializedObject.Update();
32
+ this.DrawProperties();
33
+ this.serializedObject.ApplyModifiedProperties();
34
+ }
35
+
36
+ private void DrawProperties()
37
+ {
38
+ GUILayout.Label("Fly-To Properties", EditorStyles.boldLabel);
39
+
40
+ GUIContent flyToAltitudeProfileCurveContent = new GUIContent(
41
+ "Altitude Profile Curve",
42
+ "This curve dictates what percentage of the max altitude the " +
43
+ "camera should take at a given time on the curve." +
44
+ "\n\n" +
45
+ "This curve must be kept in the 0 to 1 range on both axes. The " +
46
+ "\"Maximum Altitude Curve\" dictates the actual max " +
47
+ "altitude at each point along the curve.");
48
+ EditorGUILayout.PropertyField(
49
+ this._flyToAltitudeProfileCurve, flyToAltitudeProfileCurveContent);
50
+
51
+ GUIContent flyToProressCurveContent = new GUIContent(
52
+ "Progress Curve",
53
+ "This curve is used to determine the progress percentage for " +
54
+ "all the other curves. This allows us to accelerate and deaccelerate " +
55
+ "as wanted throughout the curve.");
56
+ EditorGUILayout.PropertyField(
57
+ this._flyToProgressCurve, flyToProressCurveContent);
58
+
59
+ GUIContent flyToMaximumAltitudeCurveContent = new GUIContent(
60
+ "Maximum Altitude Curve",
61
+ "This curve dictates the maximum altitude at each point along " +
62
+ "the curve." +
63
+ "\n\n" +
64
+ "This can be used in conjunction with the \"Altitude Profile " +
65
+ "Curve\" to allow the camera to take some altitude during the flight.");
66
+ EditorGUILayout.PropertyField(
67
+ this._flyToMaximumAltitudeCurve, flyToMaximumAltitudeCurveContent);
68
+
69
+ GUIContent flyToDurationContent = new GUIContent(
70
+ "Duration",
71
+ "The length in seconds that the camera flight should last.");
72
+ EditorGUILayout.PropertyField(
73
+ this._flyToDuration, flyToDurationContent);
74
+ }
75
+ }
76
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: f13820ee89292af4997b7bcd13efb1a5
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant: