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,230 @@
1
+ using UnityEditor;
2
+ using UnityEngine;
3
+ using System.Collections.Generic;
4
+
5
+ namespace CesiumForUnity
6
+ {
7
+ [CustomEditor(typeof(CesiumRasterOverlay))]
8
+ public class CesiumRasterOverlayEditor : Editor
9
+ {
10
+ private const string _overlayPrefix = "_overlayTexture_";
11
+
12
+ private Cesium3DTileset _tileset;
13
+ private CesiumRasterOverlay _overlay;
14
+
15
+ private SerializedProperty _showCreditsOnScreen;
16
+ private SerializedProperty _materialKey;
17
+ private SerializedProperty _maximumScreenSpaceError;
18
+ private SerializedProperty _maximumTextureSize;
19
+ private SerializedProperty _maximumSimultaneousTileLoads;
20
+ private SerializedProperty _subTileCacheBytes;
21
+
22
+ private int _materialCRC = 0;
23
+ private string[] _materialKeys;
24
+ private int _selectedMaterialKeyIndex;
25
+ private bool _showMaterialKeyWarning;
26
+
27
+ public bool drawShowCreditsOnScreen = true;
28
+ public bool drawOverlayProperties = true;
29
+
30
+ private void OnEnable()
31
+ {
32
+ this._overlay = (CesiumRasterOverlay)target;
33
+ this._tileset = _overlay.gameObject.GetComponent<Cesium3DTileset>();
34
+
35
+ this._materialKey = this.serializedObject.FindProperty("_materialKey");
36
+ this._showCreditsOnScreen = this.serializedObject.FindProperty("_showCreditsOnScreen");
37
+ this._maximumScreenSpaceError =
38
+ this.serializedObject.FindProperty("_maximumScreenSpaceError");
39
+ this._maximumTextureSize = this.serializedObject.FindProperty("_maximumTextureSize");
40
+ this._maximumSimultaneousTileLoads =
41
+ this.serializedObject.FindProperty("_maximumSimultaneousTileLoads");
42
+ this._subTileCacheBytes = this.serializedObject.FindProperty("_subTileCacheBytes");
43
+
44
+ this._materialKeys = new string[] { };
45
+ }
46
+
47
+ public override void OnInspectorGUI()
48
+ {
49
+ this.serializedObject.Update();
50
+
51
+ this.DrawTilesetWarning();
52
+
53
+ EditorGUIUtility.labelWidth = CesiumEditorStyle.inspectorLabelWidth;
54
+
55
+ this.UpdateMaterialKeys();
56
+
57
+ this.DrawMaterialKeyProperty();
58
+
59
+ if (this.drawShowCreditsOnScreen)
60
+ {
61
+ this.DrawShowCreditsOnScreenProperty();
62
+ }
63
+
64
+ if (this.drawOverlayProperties)
65
+ {
66
+ this.DrawRasterOverlayProperties();
67
+ }
68
+
69
+ this.serializedObject.ApplyModifiedProperties();
70
+ }
71
+
72
+ private void DrawTilesetWarning()
73
+ {
74
+ if (this._tileset == null)
75
+ {
76
+ EditorGUILayout.HelpBox("CesiumRasterOverlay should be used in combination with a " +
77
+ "Cesium3DTileset component on this GameObject.", MessageType.Warning);
78
+ }
79
+ }
80
+
81
+ private void UpdateMaterialKeys()
82
+ {
83
+ if (this._tileset != null)
84
+ {
85
+ Material material = this._tileset.opaqueMaterial;
86
+
87
+ if (material == null)
88
+ {
89
+ material = Resources.Load<Material>("CesiumDefaultTilesetMaterial");
90
+ }
91
+
92
+ if (material == null)
93
+ {
94
+ Debug.LogError("Couldn't find default tileset material in Resources.");
95
+ return;
96
+ }
97
+
98
+ int materialCRC = material.ComputeCRC();
99
+ if (this._materialCRC == materialCRC)
100
+ {
101
+ return;
102
+ }
103
+
104
+ string[] propertyNames = material.GetTexturePropertyNames();
105
+ List<string> materialKeys = new List<string>();
106
+
107
+ bool foundMaterialKey = false;
108
+ foreach (string name in propertyNames)
109
+ {
110
+ if (name.StartsWith(_overlayPrefix))
111
+ {
112
+ string key = name.Substring(_overlayPrefix.Length);
113
+
114
+ if (this._materialKey.stringValue == key)
115
+ {
116
+ this._selectedMaterialKeyIndex = materialKeys.Count;
117
+ foundMaterialKey = true;
118
+ this._showMaterialKeyWarning = false;
119
+ }
120
+
121
+ materialKeys.Add(key);
122
+ }
123
+ }
124
+
125
+ if (!foundMaterialKey)
126
+ {
127
+ this._showMaterialKeyWarning = true;
128
+ this._selectedMaterialKeyIndex = materialKeys.Count;
129
+ materialKeys.Add(this._materialKey.stringValue);
130
+ }
131
+
132
+ this._materialKeys = materialKeys.ToArray();
133
+ }
134
+ }
135
+
136
+
137
+ private void DrawMaterialKeyProperty()
138
+ {
139
+ GUIContent materialKeyContent = new GUIContent(
140
+ "Material Key",
141
+ "The key to use to match this overlay to the corresponding parameters " +
142
+ "in the tileset's material." +
143
+ "\n\n" +
144
+ "In the tileset's materials, an overlay requires parameters for its texture, " +
145
+ "texture coordinate index, and translation and scale. Overlays must specify a " +
146
+ "string key to match with the correct parameters. The format of these parameters " +
147
+ "is as follows." +
148
+ "\n\n" +
149
+ "- Overlay Texture: _overlayTexture_KEY\n" +
150
+ "- Overlay Texture Coordinate Index: _overlayTextureCoordinateIndex_KEY\n" +
151
+ "- Overlay Translation and Scale: _overlayTranslationScale_KEY\n" +
152
+ "\n\n" +
153
+ "Material keys are useful for specifying the order of the raster overlays, or distinguishing " +
154
+ "them for overlay-specific effects."
155
+ );
156
+ int selectedIndex =
157
+ EditorGUILayout.Popup(materialKeyContent, this._selectedMaterialKeyIndex, this._materialKeys);
158
+
159
+ if (this._showMaterialKeyWarning)
160
+ {
161
+ EditorGUILayout.HelpBox("The specified Material Key does not exist in the " +
162
+ "Cesium3DTileset's material.", MessageType.Warning);
163
+ }
164
+
165
+ if (selectedIndex == this._selectedMaterialKeyIndex ||
166
+ selectedIndex < 0 || selectedIndex >= this._materialKeys.Length)
167
+ {
168
+ return;
169
+ }
170
+
171
+ this._materialKey.stringValue = this._materialKeys[selectedIndex];
172
+ this._selectedMaterialKeyIndex = selectedIndex;
173
+
174
+ }
175
+
176
+ private void DrawShowCreditsOnScreenProperty()
177
+ {
178
+ GUIContent showCreditsOnScreenContent = new GUIContent(
179
+ "Show Credits On Screen",
180
+ "Whether or not to show credits of this raster overlay on screen.");
181
+ EditorGUILayout.PropertyField(
182
+ this._showCreditsOnScreen, showCreditsOnScreenContent);
183
+ }
184
+
185
+ private void DrawRasterOverlayProperties()
186
+ {
187
+ GUIContent maximumScreenSpaceErrorContent = new GUIContent(
188
+ "Maximum Screen Space Error",
189
+ "The maximum number of pixels of error when rendering this overlay. " +
190
+ "This is used to select an appropriate level-of-detail. " +
191
+ "\n\n" +
192
+ "When this property has its default value, 2.0, it means that raster " +
193
+ "overlay images will be sized so that, when zoomed in closest, a single " +
194
+ "pixel in the raster overlay maps to approximately 2x2 pixels on the " +
195
+ "screen.");
196
+ EditorGUILayout.PropertyField(
197
+ this._maximumScreenSpaceError, maximumScreenSpaceErrorContent);
198
+
199
+ GUIContent maximumTextureSizeContent = new GUIContent(
200
+ "Maximum Texture Size",
201
+ "The maximum texel size of raster overlay textures, in either direction." +
202
+ "\n\n" +
203
+ "Images created by this overlay will be no more than this number of " +
204
+ "texels in either direction. This may result in reduced raster overlay " +
205
+ "detail in some cases.");
206
+ EditorGUILayout.PropertyField(
207
+ this._maximumTextureSize, maximumTextureSizeContent);
208
+
209
+ GUIContent maximumSimultaneousTileLoadsContent = new GUIContent(
210
+ "Maximum Simultaneous Tile Loads",
211
+ "The maximum number of overlay tiles that may simultaneously be in " +
212
+ "the process of loading.");
213
+ EditorGUILayout.PropertyField(
214
+ this._maximumSimultaneousTileLoads, maximumSimultaneousTileLoadsContent);
215
+
216
+ GUIContent subTileCacheBytesContent = new GUIContent(
217
+ "Sub Tile Cache Bytes",
218
+ "The maximum number of bytes to use to cache sub-tiles in memory." +
219
+ "\n\n" +
220
+ "This is used by provider types, that have an underlying tiling " +
221
+ "scheme that may not align with the tiling scheme of the geometry " +
222
+ "tiles on which the raster overlay tiles are draped. Because a " +
223
+ "single sub-tile may overlap multiple geometry tiles, it is useful " +
224
+ "to cache loaded sub-tiles in memory in case they're needed again " +
225
+ "soon. This property controls the maximum size of that cache.");
226
+ EditorGUILayout.PropertyField(
227
+ this._subTileCacheBytes, subTileCacheBytesContent);
228
+ }
229
+ }
230
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: 17f96841a800f474b8b091f3cf4a6ab9
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,201 @@
1
+ using UnityEditor;
2
+ using UnityEngine;
3
+
4
+ namespace CesiumForUnity
5
+ {
6
+ [CustomEditor(typeof(CesiumSubScene))]
7
+ public class CesiumSubSceneEditor : Editor
8
+ {
9
+ private CesiumSubScene _subScene;
10
+
11
+ private SerializedProperty _activationRadius;
12
+ private SerializedProperty _showActivationRadius;
13
+
14
+ private SerializedProperty _originAuthority;
15
+
16
+ // Converts the SerializedProperty's value to the CesiumGeoreferenceOriginAuthority
17
+ // enum it corresponds to, for convenience.
18
+ internal CesiumGeoreferenceOriginAuthority originAuthority
19
+ {
20
+ get
21
+ {
22
+ return (CesiumGeoreferenceOriginAuthority)
23
+ this._originAuthority.enumValueIndex;
24
+ }
25
+ }
26
+
27
+ private SerializedProperty _latitude;
28
+ private SerializedProperty _longitude;
29
+ private SerializedProperty _height;
30
+
31
+ private SerializedProperty _ecefX;
32
+ private SerializedProperty _ecefY;
33
+ private SerializedProperty _ecefZ;
34
+
35
+ private void OnEnable()
36
+ {
37
+ this._subScene = (CesiumSubScene)this.target;
38
+
39
+ this._activationRadius = this.serializedObject.FindProperty("_activationRadius");
40
+ this._showActivationRadius =
41
+ this.serializedObject.FindProperty("_showActivationRadius");
42
+ this._originAuthority =
43
+ this.serializedObject.FindProperty("_originAuthority");
44
+
45
+ this._latitude = this.serializedObject.FindProperty("_latitude");
46
+ this._longitude = this.serializedObject.FindProperty("_longitude");
47
+ this._height = this.serializedObject.FindProperty("_height");
48
+
49
+ this._ecefX = this.serializedObject.FindProperty("_ecefX");
50
+ this._ecefY = this.serializedObject.FindProperty("_ecefY");
51
+ this._ecefZ = this.serializedObject.FindProperty("_ecefZ");
52
+ }
53
+
54
+ public override void OnInspectorGUI()
55
+ {
56
+ this.serializedObject.Update();
57
+
58
+ DrawToolbarButton();
59
+ EditorGUILayout.Space(5);
60
+ DrawSubSceneProperties();
61
+ EditorGUILayout.Space(5);
62
+
63
+ DrawLongitudeLatitudeHeightProperties();
64
+ EditorGUILayout.Space(5);
65
+ DrawEarthCenteredEarthFixedProperties();
66
+
67
+ this.serializedObject.ApplyModifiedProperties();
68
+ }
69
+
70
+ private void DrawToolbarButton()
71
+ {
72
+ // Don't modify the sub-scene if the editor is in play mode.
73
+ EditorGUI.BeginDisabledGroup(EditorApplication.isPlaying);
74
+
75
+ GUILayout.BeginHorizontal();
76
+ GUILayout.FlexibleSpace();
77
+
78
+ GUIContent placeOriginHereContent = new GUIContent(
79
+ "Place Origin Here",
80
+ "Places the sub-scene origin at the camera's current location. " +
81
+ "Rotates the globe so the current longitude/latitude/height of the " +
82
+ "camera is at the Unity origin. The camera is also teleported to the " +
83
+ "Unity origin." +
84
+ "\n\n" +
85
+ "Warning: Before clicking, ensure that all non-Cesium objects in the " +
86
+ "persistent scene are georeferenced with the \"CesiumGlobeAnchor\" " +
87
+ "component or are children of a GameObject with that component. " +
88
+ "Ensure that static GameObjects only exist under georeferenced sub-scenes.");
89
+ if (GUILayout.Button(placeOriginHereContent, GUILayout.Width(200)))
90
+ {
91
+ CesiumEditorUtility.PlaceSubSceneAtCameraPosition(this._subScene);
92
+ }
93
+
94
+ GUILayout.FlexibleSpace();
95
+ GUILayout.EndHorizontal();
96
+
97
+ EditorGUI.EndDisabledGroup();
98
+ }
99
+
100
+ private void DrawSubSceneProperties()
101
+ {
102
+ GUIContent activationRadiusContent = new GUIContent(
103
+ "Activation Radius",
104
+ "The radius from the origin at which this sub-scene becomes active. " +
105
+ "The sub-scene may not become active if another sub-scene is closer, " +
106
+ "even when the camera is inside this radius.");
107
+ EditorGUILayout.PropertyField(this._activationRadius, activationRadiusContent);
108
+
109
+ GUIContent showActivationRadiusContent = new GUIContent(
110
+ "Show Activation Radius",
111
+ "Whether to visualize the sub-scene loading radius in the editor. " +
112
+ "Helpful for initially positioning the sub-scene and choosing a load radius.");
113
+ EditorGUILayout.PropertyField(this._showActivationRadius, showActivationRadiusContent);
114
+
115
+ GUIContent originAuthorityContent = new GUIContent(
116
+ "Origin Authority",
117
+ "The set of coordinates that authoritatively define the origin of " +
118
+ "this sub-scene.");
119
+ EditorGUILayout.PropertyField(this._originAuthority, originAuthorityContent);
120
+ }
121
+
122
+ private void DrawLongitudeLatitudeHeightProperties()
123
+ {
124
+ CesiumGeoreferenceOriginAuthority authority = this.originAuthority;
125
+ EditorGUI.BeginDisabledGroup(
126
+ authority != CesiumGeoreferenceOriginAuthority.LongitudeLatitudeHeight);
127
+
128
+ GUILayout.Label(
129
+ "Origin (Longitude Latitude Height)", EditorStyles.boldLabel);
130
+
131
+ GUIContent latitudeContent = new GUIContent(
132
+ "Latitude",
133
+ "The latitude of the origin of this sub-scene in degrees, in the range [-90, 90].");
134
+ CesiumInspectorGUI.ClampedDoubleField(
135
+ this._latitude,
136
+ -90.0,
137
+ 90.0,
138
+ latitudeContent);
139
+
140
+ GUIContent longitudeContent = new GUIContent(
141
+ "Longitude",
142
+ "The longitude of the origin of this sub-scene in degrees, in the range [-180, 180].");
143
+ CesiumInspectorGUI.ClampedDoubleField(
144
+ this._longitude,
145
+ -180.0,
146
+ 180.0,
147
+ longitudeContent);
148
+
149
+ GUIContent heightContent = new GUIContent(
150
+ "Height",
151
+ "The height of the origin of this sub-scene in meters above the ellipsoid (usually WGS84)." +
152
+ "\n\n" +
153
+ "Do not confuse this with a geoid height or height above mean sea level, which " +
154
+ "can be tens of meters higher or lower depending on where in the world the " +
155
+ "origin is located.");
156
+ EditorGUILayout.PropertyField(this._height, heightContent);
157
+
158
+ EditorGUI.EndDisabledGroup();
159
+ }
160
+
161
+ private void DrawEarthCenteredEarthFixedProperties()
162
+ {
163
+ CesiumGeoreferenceOriginAuthority authority = this.originAuthority;
164
+ EditorGUI.BeginDisabledGroup(
165
+ authority != CesiumGeoreferenceOriginAuthority.EarthCenteredEarthFixed);
166
+
167
+ GUILayout.Label(
168
+ "Origin (Earth Centered, Earth Fixed)", EditorStyles.boldLabel);
169
+
170
+ GUIContent ecefXContent = new GUIContent(
171
+ "ECEF X",
172
+ "The Earth-Centered, Earth-Fixed X-coordinate of the origin of this " +
173
+ "sub-scene in meters." +
174
+ "\n\n" +
175
+ "In the ECEF coordinate system, the origin is at the center of the Earth " +
176
+ "and the positive X axis points toward where the Prime Meridian crosses " +
177
+ "the Equator.");
178
+ EditorGUILayout.PropertyField(this._ecefX, ecefXContent);
179
+
180
+ GUIContent ecefYContent = new GUIContent(
181
+ "ECEF Y",
182
+ "The Earth-Centered, Earth-Fixed Y-coordinate of the origin of this " +
183
+ "sub-scene in meters." +
184
+ "\n\n" +
185
+ "In the ECEF coordinate system, the origin is at the center of the Earth " +
186
+ "and the positive Y axis points toward the Equator at 90 degrees longitude.");
187
+ EditorGUILayout.PropertyField(this._ecefY, ecefYContent);
188
+
189
+ GUIContent ecefZContent = new GUIContent(
190
+ "ECEF Z",
191
+ "The Earth-Centered, Earth-Fixed Z-coordinate of the origin of this " +
192
+ "sub-scene in meters." +
193
+ "\n\n" +
194
+ "In the ECEF coordinate system, the origin is at the center of the Earth " +
195
+ "and the positive Z axis points toward the North pole.");
196
+ EditorGUILayout.PropertyField(this._ecefZ, ecefZContent);
197
+
198
+ EditorGUI.EndDisabledGroup();
199
+ }
200
+ }
201
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: 6d55ddd31530c9544b2305e0a6cee97f
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,88 @@
1
+ using UnityEditor;
2
+ using UnityEngine;
3
+
4
+ namespace CesiumForUnity
5
+ {
6
+ [CustomEditor(typeof(CesiumTileMapServiceRasterOverlay))]
7
+ public class CesiumTileMapServiceRasterOverlayEditor : Editor
8
+ {
9
+ private CesiumTileMapServiceRasterOverlay _tileMapServiceOverlay;
10
+ private CesiumRasterOverlayEditor _rasterOverlayEditor;
11
+
12
+ private SerializedProperty _url;
13
+ private SerializedProperty _specifyZoomLevels;
14
+ private SerializedProperty _minimumLevel;
15
+ private SerializedProperty _maximumLevel;
16
+
17
+ private void OnEnable()
18
+ {
19
+ this._tileMapServiceOverlay =
20
+ (CesiumTileMapServiceRasterOverlay)this.target;
21
+ this._rasterOverlayEditor =
22
+ (CesiumRasterOverlayEditor)Editor.CreateEditor(
23
+ this.target,
24
+ typeof(CesiumRasterOverlayEditor));
25
+
26
+ this._url = this.serializedObject.FindProperty("_url");
27
+ this._specifyZoomLevels = this.serializedObject.FindProperty("_specifyZoomLevels");
28
+ this._minimumLevel = this.serializedObject.FindProperty("_minimumLevel");
29
+ this._maximumLevel = this.serializedObject.FindProperty("_maximumLevel");
30
+ }
31
+
32
+ private void OnDisable()
33
+ {
34
+ if (this._rasterOverlayEditor != null)
35
+ {
36
+ DestroyImmediate(this._rasterOverlayEditor);
37
+ }
38
+ }
39
+
40
+ public override void OnInspectorGUI()
41
+ {
42
+ this.serializedObject.Update();
43
+
44
+ EditorGUIUtility.labelWidth = CesiumEditorStyle.inspectorLabelWidth;
45
+ DrawTileMapServiceProperties();
46
+ EditorGUILayout.Space(5);
47
+ DrawRasterOverlayProperties();
48
+
49
+ this.serializedObject.ApplyModifiedProperties();
50
+ }
51
+
52
+ private void DrawTileMapServiceProperties()
53
+ {
54
+ GUIContent urlContent = new GUIContent(
55
+ "URL",
56
+ "The base URL of the Tile Map Service (TMS).");
57
+ EditorGUILayout.DelayedTextField(this._url, urlContent);
58
+
59
+ GUIContent specifyZoomLevelsContent = new GUIContent(
60
+ "Specify Zoom Levels",
61
+ "Set true to directly specify minimum and maximum zoom levels " +
62
+ "available from the server, or false to automatically determine " +
63
+ "the minimum and maximum zoom levels from the server's " +
64
+ "tilemapresource.xml file.");
65
+ EditorGUILayout.PropertyField(this._specifyZoomLevels, specifyZoomLevelsContent);
66
+
67
+ EditorGUI.BeginDisabledGroup(!this._specifyZoomLevels.boolValue);
68
+ GUIContent minimumLevelContent = new GUIContent(
69
+ "Minimum Level",
70
+ "Minimum zoom level.");
71
+ EditorGUILayout.PropertyField(this._minimumLevel, minimumLevelContent);
72
+
73
+ GUIContent maximumLevelContent = new GUIContent(
74
+ "Maximum Level",
75
+ "Maximum zoom level.");
76
+ EditorGUILayout.PropertyField(this._maximumLevel, maximumLevelContent);
77
+ EditorGUI.EndDisabledGroup();
78
+ }
79
+
80
+ private void DrawRasterOverlayProperties()
81
+ {
82
+ if (this._rasterOverlayEditor != null)
83
+ {
84
+ this._rasterOverlayEditor.OnInspectorGUI();
85
+ }
86
+ }
87
+ }
88
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: b4a92258b26d46e4688767b72c94c36a
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,111 @@
1
+ using UnityEditor;
2
+ using UnityEngine;
3
+
4
+ namespace CesiumForUnity
5
+ {
6
+ [CustomEditor(typeof(CesiumWebMapServiceRasterOverlay))]
7
+ public class CesiumWebMapServiceRasterOverlayEditor : Editor
8
+ {
9
+ private CesiumRasterOverlayEditor _rasterOverlayEditor;
10
+
11
+ private SerializedProperty _baseUrl;
12
+ private SerializedProperty _layers;
13
+ private SerializedProperty _tileWidth;
14
+ private SerializedProperty _tileHeight;
15
+ private SerializedProperty _minimumLevel;
16
+ private SerializedProperty _maximumLevel;
17
+
18
+ private void OnEnable()
19
+ {
20
+ this._rasterOverlayEditor =
21
+ (CesiumRasterOverlayEditor)Editor.CreateEditor(
22
+ this.target,
23
+ typeof(CesiumRasterOverlayEditor));
24
+
25
+ this._baseUrl = this.serializedObject.FindProperty("_baseUrl");
26
+ this._layers = this.serializedObject.FindProperty("_layers");
27
+ this._tileWidth = this.serializedObject.FindProperty("_tileWidth");
28
+ this._tileHeight = this.serializedObject.FindProperty("_tileHeight");
29
+ this._minimumLevel = this.serializedObject.FindProperty("_minimumLevel");
30
+ this._maximumLevel = this.serializedObject.FindProperty("_maximumLevel");
31
+ }
32
+
33
+ private void OnDisable()
34
+ {
35
+ if (this._rasterOverlayEditor != null)
36
+ {
37
+ DestroyImmediate(this._rasterOverlayEditor);
38
+ }
39
+ }
40
+
41
+ public override void OnInspectorGUI()
42
+ {
43
+ this.serializedObject.Update();
44
+
45
+ EditorGUIUtility.labelWidth = CesiumEditorStyle.inspectorLabelWidth;
46
+ DrawWebMapServiceProperties();
47
+ EditorGUILayout.Space(5);
48
+ DrawRasterOverlayProperties();
49
+
50
+ this.serializedObject.ApplyModifiedProperties();
51
+ }
52
+
53
+ private void DrawWebMapServiceProperties()
54
+ {
55
+ GUIContent baseUrlContent = new GUIContent(
56
+ "Base URL",
57
+ "The base URL of the Web Map Service (WMS)." +
58
+ "\n\n" +
59
+ "e.g." +
60
+ "\n\n" +
61
+ "https://services.ga.gov.au/gis/services/NM_Culture_and_Infrastructure/MapServer/WMSServer");
62
+ EditorGUILayout.DelayedTextField(this._baseUrl, baseUrlContent);
63
+
64
+ GUIContent layersContent = new GUIContent(
65
+ "Layers",
66
+ "Comma-separated layer names to request from the server.");
67
+ EditorGUILayout.DelayedTextField(this._layers, layersContent);
68
+
69
+ GUIContent tileWidthContent = new GUIContent(
70
+ "Tile Width",
71
+ "Image width.");
72
+ CesiumInspectorGUI.ClampedIntField(
73
+ this._tileWidth,
74
+ 64,
75
+ 2048,
76
+ tileWidthContent);
77
+
78
+ GUIContent tileHeightContent = new GUIContent(
79
+ "Tile Height",
80
+ "Image height.");
81
+ CesiumInspectorGUI.ClampedIntField(
82
+ this._tileHeight,
83
+ 64,
84
+ 2048,
85
+ tileHeightContent);
86
+
87
+ GUIContent minimumLevelContent = new GUIContent(
88
+ "Minimum Level",
89
+ "Minimum zoom level." +
90
+ "\n\n" +
91
+ "Take care when specifying this that the number of tiles at the " +
92
+ "minimum level is small, such as four or less. A larger number " +
93
+ "is likely to result in rendering problems.");
94
+ EditorGUILayout.PropertyField(this._minimumLevel, minimumLevelContent);
95
+
96
+ GUIContent maximumLevelContent = new GUIContent(
97
+ "Maximum Level",
98
+ "Maximum zoom level.");
99
+ EditorGUILayout.PropertyField(this._maximumLevel, maximumLevelContent);
100
+ }
101
+
102
+ private void DrawRasterOverlayProperties()
103
+ {
104
+ if (this._rasterOverlayEditor != null)
105
+ {
106
+ this._rasterOverlayEditor.OnInspectorGUI();
107
+ }
108
+ }
109
+ }
110
+ }
111
+
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: 93667a85e98617f4d97ef0f3a47804a6
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant: