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,174 @@
1
+ using UnityEditor;
2
+ using UnityEngine;
3
+
4
+ namespace CesiumForUnity
5
+ {
6
+ [CustomEditor(typeof(CesiumCameraController))]
7
+ public class CesiumCameraControllerEditor : Editor
8
+ {
9
+ private SerializedProperty _enableMovement;
10
+ private SerializedProperty _enableRotation;
11
+
12
+ private SerializedProperty _defaultMaximumSpeed;
13
+
14
+ private SerializedProperty _enableDynamicSpeed;
15
+ private SerializedProperty _dynamicSpeedMinHeight;
16
+
17
+ private SerializedProperty _enableDynamicClippingPlanes;
18
+ private SerializedProperty _dynamicClippingPlanesMinHeight;
19
+
20
+ #if ENABLE_INPUT_SYSTEM
21
+ private SerializedProperty _lookAction;
22
+ private SerializedProperty _moveAction;
23
+ private SerializedProperty _moveUpAction;
24
+ private SerializedProperty _speedChangeAction;
25
+ private SerializedProperty _speedResetAction;
26
+ private SerializedProperty _toggleDynamicSpeedAction;
27
+ #endif
28
+
29
+ private void OnEnable()
30
+ {
31
+ this._enableMovement =
32
+ this.serializedObject.FindProperty("_enableMovement");
33
+ this._enableRotation =
34
+ this.serializedObject.FindProperty("_enableRotation");
35
+
36
+ this._defaultMaximumSpeed =
37
+ this.serializedObject.FindProperty("_defaultMaximumSpeed");
38
+
39
+ this._enableDynamicSpeed =
40
+ this.serializedObject.FindProperty("_enableDynamicSpeed");
41
+ this._dynamicSpeedMinHeight =
42
+ this.serializedObject.FindProperty("_dynamicSpeedMinHeight");
43
+
44
+ this._enableDynamicClippingPlanes =
45
+ this.serializedObject.FindProperty("_enableDynamicClippingPlanes");
46
+ this._dynamicClippingPlanesMinHeight =
47
+ this.serializedObject.FindProperty("_dynamicClippingPlanesMinHeight");
48
+
49
+ #if ENABLE_INPUT_SYSTEM
50
+ this._lookAction = this.serializedObject.FindProperty("_lookAction");
51
+ this._moveAction = this.serializedObject.FindProperty("_moveAction");
52
+ this._moveUpAction = this.serializedObject.FindProperty("_moveUpAction");
53
+ this._speedChangeAction = this.serializedObject.FindProperty("_speedChangeAction");
54
+ this._speedResetAction = this.serializedObject.FindProperty("_speedResetAction");
55
+ this._toggleDynamicSpeedAction = this.serializedObject.FindProperty("_toggleDynamicSpeedAction");
56
+ #endif
57
+ }
58
+
59
+ public override void OnInspectorGUI()
60
+ {
61
+ this.serializedObject.Update();
62
+ this.DrawProperties();
63
+ this.serializedObject.ApplyModifiedProperties();
64
+ }
65
+
66
+ private void DrawProperties()
67
+ {
68
+ // The labels for this component are particularly long, so use a custom value
69
+ // instead of the editor style's default.
70
+ int labelWidth = 215;
71
+
72
+ GUILayout.BeginHorizontal();
73
+ GUIContent enableMovementContent = new GUIContent(
74
+ "Enable Movement",
75
+ "Whether movement is enabled on this controller. Movement is controlled " +
76
+ "using the W, A, S, D keys, as well as the Q and E keys for vertical " +
77
+ "movement with respect to the globe.");
78
+ GUILayout.Label(enableMovementContent, GUILayout.Width(labelWidth));
79
+ EditorGUILayout.PropertyField(this._enableMovement, GUIContent.none);
80
+ GUILayout.EndHorizontal();
81
+
82
+ GUILayout.BeginHorizontal();
83
+ GUIContent enableRotationContent = new GUIContent(
84
+ "Enable Rotation",
85
+ "Whether rotation is enabled on this controller. Rotation is controlled " +
86
+ "by movement of the mouse.");
87
+ GUILayout.Label(enableRotationContent, GUILayout.Width(labelWidth));
88
+ EditorGUILayout.PropertyField(this._enableRotation, GUIContent.none);
89
+ GUILayout.EndHorizontal();
90
+
91
+ EditorGUILayout.Space(5);
92
+
93
+ GUILayout.BeginHorizontal();
94
+ GUIContent defaultMaximumSpeedContent = new GUIContent(
95
+ "Default Maximum Speed",
96
+ "The controller's maximum speed when dynamic speed is disabled. " +
97
+ "If dynamic speed is enabled, this value will not be used.");
98
+ GUILayout.Label(defaultMaximumSpeedContent, GUILayout.Width(labelWidth));
99
+ EditorGUILayout.PropertyField(this._defaultMaximumSpeed, GUIContent.none);
100
+ GUILayout.EndHorizontal();
101
+
102
+ GUILayout.BeginHorizontal();
103
+ GUIContent enableDynamicSpeedContent = new GUIContent(
104
+ "Enable Dynamic Speed",
105
+ "If enabled, the controller's speed will change dynamically based on " +
106
+ "elevation and other factors.");
107
+ GUILayout.Label(enableDynamicSpeedContent, GUILayout.Width(labelWidth));
108
+ EditorGUILayout.PropertyField(this._enableDynamicSpeed, GUIContent.none);
109
+ GUILayout.EndHorizontal();
110
+
111
+ EditorGUI.BeginDisabledGroup(!this._enableDynamicSpeed.boolValue);
112
+
113
+ GUILayout.BeginHorizontal();
114
+ GUIContent dynamicSpeedMinHeightContent = new GUIContent(
115
+ "Dynamic Speed Min Height",
116
+ "The minimum height where dynamic speed starts to take effect." +
117
+ "\n\n" +
118
+ "Below this height, the current speed will be set as the height of " +
119
+ "the camera above tilesets in the scene. This forces the camera to move " +
120
+ "more slowly when it is right above a tileset.");
121
+ GUILayout.Label(dynamicSpeedMinHeightContent, GUILayout.Width(labelWidth));
122
+ EditorGUILayout.PropertyField(this._dynamicSpeedMinHeight, GUIContent.none);
123
+ GUILayout.EndHorizontal();
124
+
125
+ EditorGUI.EndDisabledGroup();
126
+
127
+ EditorGUILayout.Space(5);
128
+
129
+ GUILayout.BeginHorizontal();
130
+ GUIContent enableDynamicClippingPlanesContent = new GUIContent(
131
+ "Enable Dynamic Clipping Planes",
132
+ "If enabled, the camera will dynamically reposition its clipping " +
133
+ "planes so that the globe will not get clipped from far away. " +
134
+ "If this option is disabled, the globe and other tilesets may not render " +
135
+ "at large distances because they will be clipped by the camera." +
136
+ "\n\n" +
137
+ "This setting may not work well for rendering objects that are far " +
138
+ "above the Earth but still close to the camera as it zooms out.");
139
+ GUILayout.Label(enableDynamicClippingPlanesContent, GUILayout.Width(labelWidth));
140
+ EditorGUILayout.PropertyField(this._enableDynamicClippingPlanes, GUIContent.none);
141
+ GUILayout.EndHorizontal();
142
+
143
+ EditorGUI.BeginDisabledGroup(!this._enableDynamicClippingPlanes.boolValue);
144
+
145
+ GUILayout.BeginHorizontal();
146
+ GUIContent dynamicClippingPlanesMinHeightContent = new GUIContent(
147
+ "Dynamic Clipping Planes Min Height",
148
+ "The height to start dynamically adjust the camera's clipping " +
149
+ "planes. Below this height, the clipping planes will be set to their " +
150
+ "initial values.");
151
+ GUILayout.Label(dynamicClippingPlanesMinHeightContent, GUILayout.Width(labelWidth));
152
+ EditorGUILayout.PropertyField(this._dynamicClippingPlanesMinHeight, GUIContent.none);
153
+ GUILayout.EndHorizontal();
154
+
155
+ EditorGUI.EndDisabledGroup();
156
+
157
+ #if ENABLE_INPUT_SYSTEM
158
+ EditorGUILayout.Space(5);
159
+
160
+ this._lookAction.isExpanded = EditorGUILayout.BeginFoldoutHeaderGroup(this._lookAction.isExpanded, new GUIContent("Input Actions"));
161
+ if (this._lookAction.isExpanded)
162
+ {
163
+ EditorGUILayout.PropertyField(this._lookAction);
164
+ EditorGUILayout.PropertyField(this._moveAction);
165
+ EditorGUILayout.PropertyField(this._moveUpAction);
166
+ EditorGUILayout.PropertyField(this._speedChangeAction);
167
+ EditorGUILayout.PropertyField(this._speedResetAction);
168
+ EditorGUILayout.PropertyField(this._toggleDynamicSpeedAction);
169
+ }
170
+ EditorGUILayout.EndFoldoutHeaderGroup();
171
+ #endif
172
+ }
173
+ }
174
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: 3e447b562eb44f4439e1e933e30ad8e1
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,65 @@
1
+ using UnityEditor;
2
+ using UnityEngine;
3
+
4
+ namespace CesiumForUnity
5
+ {
6
+ [CustomEditor(typeof(CesiumCameraManager))]
7
+ public class CesiumCameraManagerEditor : Editor
8
+ {
9
+ private SerializedProperty _useMainCamera;
10
+ private SerializedProperty _useActiveSceneViewCameraInEditor;
11
+ private SerializedProperty _additionalCameras;
12
+
13
+ private void OnEnable()
14
+ {
15
+ this._useMainCamera =
16
+ this.serializedObject.FindProperty("_useMainCamera");
17
+ this._useActiveSceneViewCameraInEditor =
18
+ this.serializedObject.FindProperty("_useSceneViewCameraInEditor");
19
+ this._additionalCameras =
20
+ this.serializedObject.FindProperty("_additionalCameras");
21
+ }
22
+
23
+ public override void OnInspectorGUI()
24
+ {
25
+ this.serializedObject.Update();
26
+ EditorGUIUtility.labelWidth = CesiumEditorStyle.inspectorLabelWidth;
27
+ this.DrawProperties();
28
+ this.serializedObject.ApplyModifiedProperties();
29
+ }
30
+
31
+ private static readonly string useMainCameraTooltip = CesiumEditorUtility.FormatTooltip(@"
32
+ Whether the camera tagged `MainCamera` should be used for Cesium3DTileset
33
+ culling and level-of-detail.");
34
+
35
+ private static readonly string useActiveSceneViewCameraInEditorTooltip = CesiumEditorUtility.FormatTooltip(@"
36
+ Whether the camera associated with the Editor's active scene view should be
37
+ used for Cesium3DTileset culling and level-of-detail. In a game, this property has
38
+ no effect.");
39
+
40
+ private static readonly string additionalCamerasTooltip = CesiumEditorUtility.FormatTooltip(@"
41
+ Other Cameras to use for Cesium3DTileset culling and level-of-detail, in addition to
42
+ the ones controlled by the checkboxes above.
43
+
44
+ These additional cameras will be used even when they are disabled, which is useful for
45
+ creating a virtual camera that affects Cesium3DTileset loading without being used for
46
+ rendering.");
47
+
48
+ private void DrawProperties()
49
+ {
50
+ GUIContent useMainCameraContent = new GUIContent("Use MainCamera", useMainCameraTooltip);
51
+ EditorGUILayout.PropertyField(
52
+ this._useMainCamera, useMainCameraContent);
53
+
54
+ EditorGUI.BeginDisabledGroup(EditorApplication.isPlaying);
55
+ GUIContent useActiveSceneViewCameraInEditorContent = new GUIContent("Use Editor Scene View Camera", useActiveSceneViewCameraInEditorTooltip);
56
+ EditorGUILayout.PropertyField(
57
+ this._useActiveSceneViewCameraInEditor, useActiveSceneViewCameraInEditorContent);
58
+ EditorGUI.EndDisabledGroup();
59
+
60
+ GUIContent additionalCamerasContent = new GUIContent("Additional Cameras", additionalCamerasTooltip);
61
+ EditorGUILayout.PropertyField(
62
+ this._additionalCameras, additionalCamerasContent);
63
+ }
64
+ }
65
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: b9b6152cad9e34244ad2e77613b7f6ce
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,23 @@
1
+ using UnityEditor;
2
+
3
+ namespace CesiumForUnity
4
+ {
5
+ [CustomEditor(typeof(CesiumCartographicPolygon))]
6
+ public class CesiumCartographicPolygonEditor : Editor
7
+ {
8
+ public override void OnInspectorGUI()
9
+ {
10
+ #if !SUPPORTS_SPLINES
11
+ #if UNITY_2022_2_OR_NEWER
12
+ EditorGUILayout.HelpBox("CesiumCartographicPolygon requires the Splines package, which is currently " +
13
+ "not installed in the project. Install the Splines package using the Package Manager.", MessageType.Error);
14
+ #else
15
+ EditorGUILayout.HelpBox("CesiumCartographicPolygon requires the Splines package, which is not available " +
16
+ "in this version of Unity.", MessageType.Error);
17
+ #endif
18
+ #endif
19
+
20
+ base.OnInspectorGUI();
21
+ }
22
+ }
23
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: 1a156bdf5c713bc4abbf465ff7306a09
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,41 @@
1
+ using UnityEditor;
2
+ using UnityEngine;
3
+
4
+ namespace CesiumForUnity
5
+ {
6
+ [CustomEditor(typeof(CesiumDebugColorizeTilesRasterOverlay))]
7
+ public class CesiumDebugColorizeTilesRasterOverlayEditor : Editor
8
+ {
9
+ private CesiumRasterOverlayEditor _rasterOverlayEditor;
10
+
11
+ private void OnEnable()
12
+ {
13
+ this._rasterOverlayEditor =
14
+ (CesiumRasterOverlayEditor)Editor.CreateEditor(
15
+ this.target,
16
+ typeof(CesiumRasterOverlayEditor));
17
+
18
+ // The other CesiumRasterOverlay options don't apply to
19
+ // CesiumDebugColorizeTilesRasterOverlay, so don't show them here.
20
+
21
+ this._rasterOverlayEditor.drawShowCreditsOnScreen = false;
22
+ this._rasterOverlayEditor.drawOverlayProperties = false;
23
+ }
24
+
25
+ private void OnDisable()
26
+ {
27
+ if (this._rasterOverlayEditor != null)
28
+ {
29
+ DestroyImmediate(this._rasterOverlayEditor);
30
+ }
31
+ }
32
+
33
+ public override void OnInspectorGUI()
34
+ {
35
+ if (this._rasterOverlayEditor != null)
36
+ {
37
+ this._rasterOverlayEditor.OnInspectorGUI();
38
+ }
39
+ }
40
+ }
41
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: 051fad8bd27d3b343ac9fc2e5638b8b1
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,26 @@
1
+ {
2
+ "name": "CesiumEditor",
3
+ "rootNamespace": "",
4
+ "references": [
5
+ "GUID:63cab5ddbd23cf34ca160a9b3d74438d",
6
+ "GUID:d8b63aba1907145bea998dd612889d6b",
7
+ "GUID:21d1eb854b91ade49bc69a263d12bee2"
8
+ ],
9
+ "includePlatforms": [
10
+ "Editor"
11
+ ],
12
+ "excludePlatforms": [],
13
+ "allowUnsafeCode": true,
14
+ "overrideReferences": false,
15
+ "precompiledReferences": [],
16
+ "autoReferenced": true,
17
+ "defineConstraints": [],
18
+ "versionDefines": [
19
+ {
20
+ "name": "com.unity.splines",
21
+ "expression": "1.0.0",
22
+ "define": "SUPPORTS_SPLINES"
23
+ }
24
+ ],
25
+ "noEngineReferences": false
26
+ }
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: d8e0c8e48fa6efc46b2c9709d0296ae1
3
+ AssemblyDefinitionImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
@@ -0,0 +1,188 @@
1
+ using System;
2
+ using System.Collections.Generic;
3
+ using UnityEngine;
4
+ using UnityEditor;
5
+
6
+ namespace CesiumForUnity
7
+ {
8
+ public static class CesiumEditorStyle
9
+ {
10
+ public static GUIStyle toolbarStyle;
11
+ public static GUIStyle toolbarButtonStyle;
12
+ public static GUIStyle toolbarButtonDisabledStyle;
13
+
14
+ public static GUIStyle quickAddItemStyle;
15
+ public static GUIStyle quickAddButtonStyle;
16
+
17
+ public static GUIStyle cesiumButtonStyle;
18
+ public static GUIStyle cesiumButtonDisabledStyle;
19
+ public static GUIStyle refreshButtonStyle;
20
+
21
+ public static GUIStyle headerStyle;
22
+ public static GUIStyle subheaderStyle;
23
+
24
+ public static Texture2D cesiumForUnityLogoLight;
25
+ public static Texture2D cesiumForUnityLogoDark;
26
+ private static readonly int logoWidth = 400;
27
+ private static readonly int logoHeight = 330;
28
+
29
+ public static Texture2D quickAddIcon;
30
+ public static Dictionary<CesiumEditorWindow.ToolbarButton, Texture2D> toolbarIcons;
31
+ public static Texture2D refreshIcon;
32
+ public static Texture2D checkIcon;
33
+ public static Texture2D xIcon;
34
+ public static Texture2D folderIcon;
35
+
36
+ private static readonly Color buttonColor = new Color(0.2945f, 0.6317f, 0.7930f);
37
+ private static readonly Color buttonColorLighter = new Color(0.4475f, 0.7544f, 0.8904f);
38
+ private static readonly Color buttonColorDarker = new Color(0.2598f, 0.5785f, 0.7075f);
39
+ private static readonly Color disabledButtonTextColor = new Color(0.7f, 0.7f, 0.7f);
40
+
41
+ private static Texture2D buttonTexture;
42
+ private static Texture2D buttonHoverTexture;
43
+ private static Texture2D buttonPressedTexture;
44
+
45
+ public static readonly float inspectorLabelWidth = 205.0f;
46
+
47
+ private static Texture2D LoadImage(string resourcePath)
48
+ {
49
+ Texture2D icon = Resources.Load<Texture2D>(resourcePath);
50
+ icon.wrapMode = TextureWrapMode.Clamp;
51
+
52
+ return icon;
53
+ }
54
+
55
+ private static Texture2D LoadImage(
56
+ string resourcePath,
57
+ int desiredWidth,
58
+ int desiredHeight)
59
+ {
60
+ // This is a roundabout way of resizing the image, since Reinitialize()
61
+ // doesn't work on textures that aren't readable and the textures
62
+ // from Resources.Load are non-readable by default.
63
+ Texture2D original = LoadImage(resourcePath);
64
+ RenderTexture renderTexture = new RenderTexture(
65
+ desiredWidth,
66
+ desiredHeight,
67
+ 0);
68
+ RenderTexture oldActive = RenderTexture.active;
69
+ RenderTexture.active = renderTexture;
70
+ Graphics.Blit(original, renderTexture);
71
+
72
+ Texture2D resized = new Texture2D(desiredWidth, desiredHeight);
73
+ resized.ReadPixels(new Rect(0, 0, desiredWidth, desiredHeight), 0, 0);
74
+ resized.Apply();
75
+ resized.hideFlags = HideFlags.HideAndDontSave;
76
+
77
+ RenderTexture.active = oldActive;
78
+
79
+ return resized;
80
+ }
81
+
82
+ static CesiumEditorStyle()
83
+ {
84
+ cesiumForUnityLogoDark =
85
+ LoadImage("Cesium-for-Unity-dark", logoWidth, logoHeight);
86
+ cesiumForUnityLogoLight =
87
+ LoadImage("Cesium-for-Unity-light", logoWidth, logoHeight);
88
+
89
+ quickAddIcon = LoadImage("FontAwesome/plus-solid");
90
+
91
+ quickAddItemStyle = new GUIStyle();
92
+ quickAddItemStyle.margin = new RectOffset(5, 5, 10, 10);
93
+
94
+ quickAddButtonStyle = new GUIStyle();
95
+ quickAddButtonStyle.fixedWidth = 16.0f;
96
+ quickAddButtonStyle.fixedHeight = 16.0f;
97
+ quickAddButtonStyle.hover.background = Texture2D.grayTexture;
98
+
99
+ toolbarIcons = new Dictionary<CesiumEditorWindow.ToolbarButton, Texture2D>();
100
+ toolbarIcons.Add(
101
+ CesiumEditorWindow.ToolbarButton.Add,
102
+ quickAddIcon);
103
+ toolbarIcons.Add(
104
+ CesiumEditorWindow.ToolbarButton.Upload,
105
+ LoadImage("FontAwesome/cloud-upload-alt-solid"));
106
+ toolbarIcons.Add(
107
+ CesiumEditorWindow.ToolbarButton.Token,
108
+ LoadImage("FontAwesome/key-solid"));
109
+ toolbarIcons.Add(
110
+ CesiumEditorWindow.ToolbarButton.Learn,
111
+ LoadImage("FontAwesome/book-reader-solid"));
112
+ toolbarIcons.Add(
113
+ CesiumEditorWindow.ToolbarButton.Help,
114
+ LoadImage("FontAwesome/hands-helping-solid"));
115
+ toolbarIcons.Add(
116
+ CesiumEditorWindow.ToolbarButton.SignOut,
117
+ LoadImage("FontAwesome/sign-out-alt-solid"));
118
+
119
+ toolbarStyle = new GUIStyle();
120
+ toolbarStyle.margin = new RectOffset(5, 5, 5, 5);
121
+
122
+ toolbarButtonStyle = new GUIStyle();
123
+ toolbarButtonStyle.imagePosition = ImagePosition.ImageAbove;
124
+ toolbarButtonStyle.padding = new RectOffset(5, 5, 5, 5);
125
+ toolbarButtonStyle.alignment = TextAnchor.MiddleCenter;
126
+ toolbarButtonStyle.normal.textColor = EditorStyles.label.normal.textColor;
127
+ toolbarButtonStyle.hover.textColor = EditorStyles.label.normal.textColor;
128
+ toolbarButtonStyle.hover.background = Texture2D.grayTexture;
129
+
130
+ toolbarButtonDisabledStyle = new GUIStyle(toolbarButtonStyle);
131
+ toolbarButtonDisabledStyle.hover.background = null;
132
+
133
+ refreshIcon = LoadImage("FontAwesome/sync-alt-solid");
134
+
135
+ buttonTexture = new Texture2D(1, 1);
136
+ buttonTexture.SetPixel(0, 0, buttonColor);
137
+ buttonTexture.Apply();
138
+ buttonTexture.hideFlags = HideFlags.HideAndDontSave;
139
+
140
+ buttonHoverTexture = new Texture2D(1, 1);
141
+ buttonHoverTexture.SetPixel(0, 0, buttonColorLighter);
142
+ buttonHoverTexture.Apply();
143
+ buttonHoverTexture.hideFlags = HideFlags.HideAndDontSave;
144
+
145
+ buttonPressedTexture = new Texture2D(1, 1);
146
+ buttonPressedTexture.SetPixel(0, 0, buttonColorDarker);
147
+ buttonPressedTexture.Apply();
148
+ buttonPressedTexture.hideFlags = HideFlags.HideAndDontSave;
149
+
150
+ cesiumButtonStyle = new GUIStyle();
151
+ cesiumButtonStyle.padding = new RectOffset(25, 25, 10, 10);
152
+ cesiumButtonStyle.margin = new RectOffset(10, 10, 10, 10);
153
+ cesiumButtonStyle.fontStyle = FontStyle.Bold;
154
+ cesiumButtonStyle.alignment = TextAnchor.MiddleCenter;
155
+ cesiumButtonStyle.normal.background = buttonTexture;
156
+ cesiumButtonStyle.normal.textColor = Color.white;
157
+ cesiumButtonStyle.hover.background = buttonHoverTexture;
158
+ cesiumButtonStyle.hover.textColor = Color.white;
159
+ cesiumButtonStyle.active.background = buttonPressedTexture;
160
+ cesiumButtonStyle.active.textColor = Color.white;
161
+
162
+ cesiumButtonDisabledStyle = new GUIStyle(cesiumButtonStyle);
163
+ cesiumButtonDisabledStyle.normal.background = Texture2D.grayTexture;
164
+ cesiumButtonDisabledStyle.normal.textColor = disabledButtonTextColor;
165
+ cesiumButtonDisabledStyle.hover.background = Texture2D.grayTexture;
166
+ cesiumButtonDisabledStyle.hover.textColor = disabledButtonTextColor;
167
+ cesiumButtonDisabledStyle.active.background = Texture2D.grayTexture;
168
+ cesiumButtonDisabledStyle.active.textColor = disabledButtonTextColor;
169
+
170
+ refreshButtonStyle = new GUIStyle(cesiumButtonStyle);
171
+ refreshButtonStyle.padding = new RectOffset(5, 5, 5, 5);
172
+ refreshButtonStyle.fixedHeight = 32;
173
+ refreshButtonStyle.fixedWidth = 40;
174
+
175
+ headerStyle = new GUIStyle(EditorStyles.label);
176
+ headerStyle.fontSize = 18;
177
+ headerStyle.wordWrap = true;
178
+
179
+ subheaderStyle = new GUIStyle(EditorStyles.label);
180
+ subheaderStyle.fontSize = 14;
181
+ subheaderStyle.margin = new RectOffset(5, 5, 5, 5);
182
+
183
+ checkIcon = LoadImage("FontAwesome/check-solid");
184
+ xIcon = LoadImage("FontAwesome/times-solid");
185
+ folderIcon = LoadImage("FontAwesome/folder");
186
+ }
187
+ }
188
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: b8b0769db210ac94ebc4c591135eb1ee
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant: