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.
- package/CHANGES.md +420 -0
- package/CHANGES.md.meta +7 -0
- package/Editor/BuildCesiumForUnity.cs +186 -0
- package/Editor/BuildCesiumForUnity.cs.meta +11 -0
- package/Editor/Cesium3DTilesetEditor.cs +542 -0
- package/Editor/Cesium3DTilesetEditor.cs.meta +11 -0
- package/Editor/CesiumBingMapsRasterOverlayEditor.cs +66 -0
- package/Editor/CesiumBingMapsRasterOverlayEditor.cs.meta +11 -0
- package/Editor/CesiumCameraControllerEditor.cs +174 -0
- package/Editor/CesiumCameraControllerEditor.cs.meta +11 -0
- package/Editor/CesiumCameraManagerEditor.cs +65 -0
- package/Editor/CesiumCameraManagerEditor.cs.meta +11 -0
- package/Editor/CesiumCartographicPolygonEditor.cs +23 -0
- package/Editor/CesiumCartographicPolygonEditor.cs.meta +11 -0
- package/Editor/CesiumDebugColorizeTilesRasterOverlayEditor.cs +41 -0
- package/Editor/CesiumDebugColorizeTilesRasterOverlayEditor.cs.meta +11 -0
- package/Editor/CesiumEditor.asmdef +26 -0
- package/Editor/CesiumEditor.asmdef.meta +7 -0
- package/Editor/CesiumEditorStyle.cs +188 -0
- package/Editor/CesiumEditorStyle.cs.meta +11 -0
- package/Editor/CesiumEditorUtility.cs +394 -0
- package/Editor/CesiumEditorUtility.cs.meta +11 -0
- package/Editor/CesiumEditorWindow.cs +447 -0
- package/Editor/CesiumEditorWindow.cs.meta +11 -0
- package/Editor/CesiumFlyToControllerEditor.cs +76 -0
- package/Editor/CesiumFlyToControllerEditor.cs.meta +11 -0
- package/Editor/CesiumGeoreferenceEditor.cs +277 -0
- package/Editor/CesiumGeoreferenceEditor.cs.meta +11 -0
- package/Editor/CesiumGlobeAnchorEditor.cs +202 -0
- package/Editor/CesiumGlobeAnchorEditor.cs.meta +11 -0
- package/Editor/CesiumInspectorGUI.cs +187 -0
- package/Editor/CesiumInspectorGUI.cs.meta +11 -0
- package/Editor/CesiumIonAsset.cs +192 -0
- package/Editor/CesiumIonAsset.cs.meta +11 -0
- package/Editor/CesiumIonAssetsWindow.cs +257 -0
- package/Editor/CesiumIonAssetsWindow.cs.meta +11 -0
- package/Editor/CesiumIonRasterOverlayEditor.cs +87 -0
- package/Editor/CesiumIonRasterOverlayEditor.cs.meta +11 -0
- package/Editor/CesiumIonServerManager.cs +153 -0
- package/Editor/CesiumIonServerManager.cs.meta +11 -0
- package/Editor/CesiumIonServerSelector.cs +127 -0
- package/Editor/CesiumIonServerSelector.cs.meta +11 -0
- package/Editor/CesiumIonSession.cs +102 -0
- package/Editor/CesiumIonSession.cs.meta +11 -0
- package/Editor/CesiumPolygonRasterOverlayEditor.cs +102 -0
- package/Editor/CesiumPolygonRasterOverlayEditor.cs.meta +11 -0
- package/Editor/CesiumRasterOverlayEditor.cs +230 -0
- package/Editor/CesiumRasterOverlayEditor.cs.meta +11 -0
- package/Editor/CesiumSubSceneEditor.cs +201 -0
- package/Editor/CesiumSubSceneEditor.cs.meta +11 -0
- package/Editor/CesiumTileMapServiceRasterOverlayEditor.cs +88 -0
- package/Editor/CesiumTileMapServiceRasterOverlayEditor.cs.meta +11 -0
- package/Editor/CesiumWebMapServiceRasterOverlayEditor.cs +111 -0
- package/Editor/CesiumWebMapServiceRasterOverlayEditor.cs.meta +11 -0
- package/Editor/CesiumWebMapTileServiceRasterOverlayEditor.cs +277 -0
- package/Editor/CesiumWebMapTileServiceRasterOverlayEditor.cs.meta +3 -0
- package/Editor/CompileCesiumForUnityNative.cs +581 -0
- package/Editor/CompileCesiumForUnityNative.cs.meta +11 -0
- package/Editor/ConfigureReinterop.cs +255 -0
- package/Editor/ConfigureReinterop.cs.meta +11 -0
- package/Editor/Helpers.cs +102 -0
- package/Editor/Helpers.cs.meta +11 -0
- package/Editor/IonAssetsMultiColumnHeader.cs +45 -0
- package/Editor/IonAssetsMultiColumnHeader.cs.meta +11 -0
- package/Editor/IonAssetsTreeView.cs +214 -0
- package/Editor/IonAssetsTreeView.cs.meta +11 -0
- package/Editor/IonMissingAssetWindow.cs +65 -0
- package/Editor/IonMissingAssetWindow.cs.meta +11 -0
- package/Editor/IonTokenTroubleshootingWindow.cs +615 -0
- package/Editor/IonTokenTroubleshootingWindow.cs.meta +11 -0
- package/Editor/NativeDownloadHandler.cs +35 -0
- package/Editor/NativeDownloadHandler.cs.meta +11 -0
- package/Editor/QuickAddItem.cs +43 -0
- package/Editor/QuickAddItem.cs.meta +11 -0
- package/Editor/Resources/Cesium-128x128.png +0 -0
- package/Editor/Resources/Cesium-128x128.png.meta +98 -0
- package/Editor/Resources/Cesium-24x24.png +0 -0
- package/Editor/Resources/Cesium-24x24.png.meta +123 -0
- package/Editor/Resources/Cesium-64x64.png +0 -0
- package/Editor/Resources/Cesium-64x64.png.meta +98 -0
- package/Editor/Resources/Cesium-for-Unity-dark.png +0 -0
- package/Editor/Resources/Cesium-for-Unity-dark.png.meta +123 -0
- package/Editor/Resources/Cesium-for-Unity-light.png +0 -0
- package/Editor/Resources/Cesium-for-Unity-light.png.meta +123 -0
- package/Editor/Resources/Cesium-icon-16x16.png +0 -0
- package/Editor/Resources/Cesium-icon-16x16.png.meta +98 -0
- package/Editor/Resources/FontAwesome/attribution.txt +9 -0
- package/Editor/Resources/FontAwesome/attribution.txt.meta +7 -0
- package/Editor/Resources/FontAwesome/book-reader-solid.png +0 -0
- package/Editor/Resources/FontAwesome/book-reader-solid.png.meta +98 -0
- package/Editor/Resources/FontAwesome/book-reader-solid.svg +1 -0
- package/Editor/Resources/FontAwesome/book-reader-solid.svg.meta +7 -0
- package/Editor/Resources/FontAwesome/check-solid.png +0 -0
- package/Editor/Resources/FontAwesome/check-solid.png.meta +98 -0
- package/Editor/Resources/FontAwesome/check-solid.svg +1 -0
- package/Editor/Resources/FontAwesome/check-solid.svg.meta +7 -0
- package/Editor/Resources/FontAwesome/cloud-upload-alt-solid.png +0 -0
- package/Editor/Resources/FontAwesome/cloud-upload-alt-solid.png.meta +98 -0
- package/Editor/Resources/FontAwesome/cloud-upload-alt-solid.svg +1 -0
- package/Editor/Resources/FontAwesome/cloud-upload-alt-solid.svg.meta +7 -0
- package/Editor/Resources/FontAwesome/folder.png +0 -0
- package/Editor/Resources/FontAwesome/folder.png.meta +147 -0
- package/Editor/Resources/FontAwesome/folder.svg +5 -0
- package/Editor/Resources/FontAwesome/folder.svg.meta +7 -0
- package/Editor/Resources/FontAwesome/hands-helping-solid.png +0 -0
- package/Editor/Resources/FontAwesome/hands-helping-solid.png.meta +98 -0
- package/Editor/Resources/FontAwesome/hands-helping-solid.svg +1 -0
- package/Editor/Resources/FontAwesome/hands-helping-solid.svg.meta +7 -0
- package/Editor/Resources/FontAwesome/key-solid.png +0 -0
- package/Editor/Resources/FontAwesome/key-solid.png.meta +98 -0
- package/Editor/Resources/FontAwesome/key-solid.svg +1 -0
- package/Editor/Resources/FontAwesome/key-solid.svg.meta +7 -0
- package/Editor/Resources/FontAwesome/plus-solid.png +0 -0
- package/Editor/Resources/FontAwesome/plus-solid.png.meta +98 -0
- package/Editor/Resources/FontAwesome/plus-solid.svg +1 -0
- package/Editor/Resources/FontAwesome/plus-solid.svg.meta +7 -0
- package/Editor/Resources/FontAwesome/sign-out-alt-solid.png +0 -0
- package/Editor/Resources/FontAwesome/sign-out-alt-solid.png.meta +98 -0
- package/Editor/Resources/FontAwesome/sign-out-alt-solid.svg +1 -0
- package/Editor/Resources/FontAwesome/sign-out-alt-solid.svg.meta +7 -0
- package/Editor/Resources/FontAwesome/sync-alt-solid.png +0 -0
- package/Editor/Resources/FontAwesome/sync-alt-solid.png.meta +98 -0
- package/Editor/Resources/FontAwesome/sync-alt-solid.svg +1 -0
- package/Editor/Resources/FontAwesome/sync-alt-solid.svg.meta +7 -0
- package/Editor/Resources/FontAwesome/times-solid.png +0 -0
- package/Editor/Resources/FontAwesome/times-solid.png.meta +98 -0
- package/Editor/Resources/FontAwesome/times-solid.svg +1 -0
- package/Editor/Resources/FontAwesome/times-solid.svg.meta +7 -0
- package/Editor/Resources/FontAwesome.meta +8 -0
- package/Editor/Resources.meta +8 -0
- package/Editor/SelectIonTokenWindow.cs +249 -0
- package/Editor/SelectIonTokenWindow.cs.meta +11 -0
- package/Editor/arm64.meta +8 -0
- package/Editor/csc.rsp +1 -0
- package/Editor/csc.rsp.meta +7 -0
- package/Editor/libCesiumForUnityNative-Editor.so +0 -0
- package/Editor/libCesiumForUnityNative-Editor.so.meta +2 -0
- package/Editor/libCesiumForUnityNative-Runtime.so +0 -0
- package/Editor/libCesiumForUnityNative-Runtime.so.meta +2 -0
- package/Editor/x86_64.meta +8 -0
- package/Editor.meta +8 -0
- package/LICENSE +201 -0
- package/LICENSE.meta +7 -0
- package/Plugins/Standalone/libCesiumForUnityNative-Runtime.so +0 -0
- package/Plugins/Standalone/libCesiumForUnityNative-Runtime.so.meta +2 -0
- package/Plugins/Standalone.meta +8 -0
- package/Plugins.meta +8 -0
- package/README.md +39 -0
- package/README.md.meta +7 -0
- package/Reinterop.deps.json +172 -0
- package/Reinterop.deps.json.meta +7 -0
- package/Reinterop.dll +0 -0
- package/Reinterop.dll.meta +79 -0
- package/Runtime/Cesium3DTile.cs +37 -0
- package/Runtime/Cesium3DTile.cs.meta +11 -0
- package/Runtime/Cesium3DTileset.cs +788 -0
- package/Runtime/Cesium3DTileset.cs.meta +11 -0
- package/Runtime/Cesium3DTilesetLoadFailureDetails.cs +65 -0
- package/Runtime/Cesium3DTilesetLoadFailureDetails.cs.meta +11 -0
- package/Runtime/CesiumBackwardCompatibility.cs +163 -0
- package/Runtime/CesiumBackwardCompatibility.cs.meta +11 -0
- package/Runtime/CesiumBingMapsRasterOverlay.cs +72 -0
- package/Runtime/CesiumBingMapsRasterOverlay.cs.meta +11 -0
- package/Runtime/CesiumCameraController.cs +827 -0
- package/Runtime/CesiumCameraController.cs.meta +11 -0
- package/Runtime/CesiumCameraManager.cs +105 -0
- package/Runtime/CesiumCameraManager.cs.meta +11 -0
- package/Runtime/CesiumCartographicPolygon.cs +152 -0
- package/Runtime/CesiumCartographicPolygon.cs.meta +11 -0
- package/Runtime/CesiumCreditSystem.cs +343 -0
- package/Runtime/CesiumCreditSystem.cs.meta +11 -0
- package/Runtime/CesiumCreditSystemUI.cs +402 -0
- package/Runtime/CesiumCreditSystemUI.cs.meta +11 -0
- package/Runtime/CesiumDebugColorizeTilesRasterOverlay.cs +21 -0
- package/Runtime/CesiumDebugColorizeTilesRasterOverlay.cs.meta +11 -0
- package/Runtime/CesiumEllipsoid.cs +107 -0
- package/Runtime/CesiumEllipsoid.cs.meta +11 -0
- package/Runtime/CesiumFeature.cs +279 -0
- package/Runtime/CesiumFeature.cs.meta +11 -0
- package/Runtime/CesiumFeatureIdAttribute.cs +61 -0
- package/Runtime/CesiumFeatureIdAttribute.cs.meta +11 -0
- package/Runtime/CesiumFeatureIdSet.cs +165 -0
- package/Runtime/CesiumFeatureIdSet.cs.meta +11 -0
- package/Runtime/CesiumFeatureIdTexture.cs +68 -0
- package/Runtime/CesiumFeatureIdTexture.cs.meta +11 -0
- package/Runtime/CesiumFlyToController.cs +539 -0
- package/Runtime/CesiumFlyToController.cs.meta +11 -0
- package/Runtime/CesiumGeoreference.cs +628 -0
- package/Runtime/CesiumGeoreference.cs.meta +11 -0
- package/Runtime/CesiumGlobeAnchor.cs +664 -0
- package/Runtime/CesiumGlobeAnchor.cs.meta +11 -0
- package/Runtime/CesiumGlobeAnchorBackwardCompatibility0dot2dot0.cs +105 -0
- package/Runtime/CesiumGlobeAnchorBackwardCompatibility0dot2dot0.cs.meta +11 -0
- package/Runtime/CesiumIntMatN.cs +398 -0
- package/Runtime/CesiumIntMatN.cs.meta +11 -0
- package/Runtime/CesiumIntVecN.cs +525 -0
- package/Runtime/CesiumIntVecN.cs.meta +11 -0
- package/Runtime/CesiumIonRasterOverlay.cs +110 -0
- package/Runtime/CesiumIonRasterOverlay.cs.meta +11 -0
- package/Runtime/CesiumIonServer.cs +137 -0
- package/Runtime/CesiumIonServer.cs.meta +11 -0
- package/Runtime/CesiumMetadata.cs +33 -0
- package/Runtime/CesiumMetadata.cs.meta +11 -0
- package/Runtime/CesiumMetadataValue.cs +1764 -0
- package/Runtime/CesiumMetadataValue.cs.meta +11 -0
- package/Runtime/CesiumMetadataValueType.cs +203 -0
- package/Runtime/CesiumMetadataValueType.cs.meta +11 -0
- package/Runtime/CesiumModelMetadata.cs +26 -0
- package/Runtime/CesiumModelMetadata.cs.meta +11 -0
- package/Runtime/CesiumObjectPool.cs +74 -0
- package/Runtime/CesiumObjectPool.cs.meta +11 -0
- package/Runtime/CesiumObjectPools.cs +39 -0
- package/Runtime/CesiumObjectPools.cs.meta +11 -0
- package/Runtime/CesiumOriginShift.cs +146 -0
- package/Runtime/CesiumOriginShift.cs.meta +11 -0
- package/Runtime/CesiumPointCloudRenderer.cs +246 -0
- package/Runtime/CesiumPointCloudRenderer.cs.meta +11 -0
- package/Runtime/CesiumPointCloudShading.cs +76 -0
- package/Runtime/CesiumPointCloudShading.cs.meta +11 -0
- package/Runtime/CesiumPolygonRasterOverlay.cs +109 -0
- package/Runtime/CesiumPolygonRasterOverlay.cs.meta +11 -0
- package/Runtime/CesiumPrimitiveFeatures.cs +130 -0
- package/Runtime/CesiumPrimitiveFeatures.cs.meta +11 -0
- package/Runtime/CesiumPropertyArray.cs +64 -0
- package/Runtime/CesiumPropertyArray.cs.meta +11 -0
- package/Runtime/CesiumPropertyTable.cs +126 -0
- package/Runtime/CesiumPropertyTable.cs.meta +11 -0
- package/Runtime/CesiumPropertyTableProperty.cs +1734 -0
- package/Runtime/CesiumPropertyTableProperty.cs.meta +11 -0
- package/Runtime/CesiumRasterOverlay.cs +239 -0
- package/Runtime/CesiumRasterOverlay.cs.meta +11 -0
- package/Runtime/CesiumRasterOverlayLoadFailureDetails.cs +65 -0
- package/Runtime/CesiumRasterOverlayLoadFailureDetails.cs.meta +11 -0
- package/Runtime/CesiumRuntime.asmdef +32 -0
- package/Runtime/CesiumRuntime.asmdef.meta +7 -0
- package/Runtime/CesiumRuntime.cs +3 -0
- package/Runtime/CesiumRuntime.cs.meta +11 -0
- package/Runtime/CesiumRuntimeSettings.cs +188 -0
- package/Runtime/CesiumRuntimeSettings.cs.meta +11 -0
- package/Runtime/CesiumSampleHeightResult.cs +47 -0
- package/Runtime/CesiumSampleHeightResult.cs.meta +11 -0
- package/Runtime/CesiumSimplePlanarEllipsoidCurve.cs +93 -0
- package/Runtime/CesiumSimplePlanarEllipsoidCurve.cs.meta +11 -0
- package/Runtime/CesiumSubScene.cs +473 -0
- package/Runtime/CesiumSubScene.cs.meta +11 -0
- package/Runtime/CesiumTileExcluder.cs +47 -0
- package/Runtime/CesiumTileExcluder.cs.meta +11 -0
- package/Runtime/CesiumTileMapServiceRasterOverlay.cs +93 -0
- package/Runtime/CesiumTileMapServiceRasterOverlay.cs.meta +11 -0
- package/Runtime/CesiumWebMapServiceRasterOverlay.cs +129 -0
- package/Runtime/CesiumWebMapServiceRasterOverlay.cs.meta +11 -0
- package/Runtime/CesiumWebMapTileServiceRasterOverlay.cs +414 -0
- package/Runtime/CesiumWebMapTileServiceRasterOverlay.cs.meta +3 -0
- package/Runtime/CesiumWgs84Ellipsoid.cs +75 -0
- package/Runtime/CesiumWgs84Ellipsoid.cs.meta +11 -0
- package/Runtime/ConfigureReinterop.cs +926 -0
- package/Runtime/ConfigureReinterop.cs.meta +11 -0
- package/Runtime/Helpers.cs +122 -0
- package/Runtime/Helpers.cs.meta +11 -0
- package/Runtime/ICesiumRestartable.cs +17 -0
- package/Runtime/ICesiumRestartable.cs.meta +11 -0
- package/Runtime/NativeCoroutine.cs +28 -0
- package/Runtime/NativeCoroutine.cs.meta +11 -0
- package/Runtime/NativeDownloadHandler.cs +29 -0
- package/Runtime/NativeDownloadHandler.cs.meta +11 -0
- package/Runtime/Resources/CesiumCreditSystem.prefab +78 -0
- package/Runtime/Resources/CesiumCreditSystem.prefab.meta +7 -0
- package/Runtime/Resources/CesiumCreditSystemRuntimeTheme.tss +2 -0
- package/Runtime/Resources/CesiumCreditSystemRuntimeTheme.tss.meta +11 -0
- package/Runtime/Resources/CesiumCreditSystemUI.uxml +4 -0
- package/Runtime/Resources/CesiumCreditSystemUI.uxml.meta +10 -0
- package/Runtime/Resources/CesiumCreditSystemUIPanelSettings.asset +38 -0
- package/Runtime/Resources/CesiumCreditSystemUIPanelSettings.asset.meta +8 -0
- package/Runtime/Resources/CesiumDefaultTilesetMaterial.mat +232 -0
- package/Runtime/Resources/CesiumDefaultTilesetMaterial.mat.meta +8 -0
- package/Runtime/Resources/CesiumDefaultTilesetShader.shadergraph +14271 -0
- package/Runtime/Resources/CesiumDefaultTilesetShader.shadergraph.meta +10 -0
- package/Runtime/Resources/CesiumPointCloudShading.hlsl +156 -0
- package/Runtime/Resources/CesiumPointCloudShading.hlsl.meta +7 -0
- package/Runtime/Resources/CesiumPointCloudShadingMaterial.mat +125 -0
- package/Runtime/Resources/CesiumPointCloudShadingMaterial.mat.meta +8 -0
- package/Runtime/Resources/CesiumPointCloudShadingShader.shader +73 -0
- package/Runtime/Resources/CesiumPointCloudShadingShader.shader.meta +10 -0
- package/Runtime/Resources/CesiumRasterOverlay.shadersubgraph +2207 -0
- package/Runtime/Resources/CesiumRasterOverlay.shadersubgraph.meta +10 -0
- package/Runtime/Resources/CesiumSelectTexCoords.shadersubgraph +722 -0
- package/Runtime/Resources/CesiumSelectTexCoords.shadersubgraph.meta +10 -0
- package/Runtime/Resources/CesiumUnlitTilesetMaterial.mat +261 -0
- package/Runtime/Resources/CesiumUnlitTilesetMaterial.mat.meta +8 -0
- package/Runtime/Resources/CesiumUnlitTilesetShader.shadergraph +5873 -0
- package/Runtime/Resources/CesiumUnlitTilesetShader.shadergraph.meta +10 -0
- package/Runtime/Resources/DynamicCamera.prefab +253 -0
- package/Runtime/Resources/DynamicCamera.prefab.meta +7 -0
- package/Runtime/Resources/TransformTextureCoordinates.shadersubgraph +2171 -0
- package/Runtime/Resources/TransformTextureCoordinates.shadersubgraph.meta +10 -0
- package/Runtime/Resources/green1x1.png +0 -0
- package/Runtime/Resources/green1x1.png.meta +123 -0
- package/Runtime/Resources.meta +8 -0
- package/Runtime/TestGltfModel.cs +56 -0
- package/Runtime/TestGltfModel.cs.meta +11 -0
- package/Runtime/TestReinterop.cs +21 -0
- package/Runtime/TestReinterop.cs.meta +11 -0
- package/Runtime/UnityLifetime.cs +27 -0
- package/Runtime/UnityLifetime.cs.meta +11 -0
- package/Runtime/WaitForTask.cs +25 -0
- package/Runtime/WaitForTask.cs.meta +11 -0
- package/Runtime/csc.rsp +1 -0
- package/Runtime/csc.rsp.meta +7 -0
- package/Runtime.meta +8 -0
- package/ThirdParty.json +27 -0
- package/ThirdParty.json.meta +7 -0
- package/WGS84.asset +18 -0
- package/WGS84.asset.meta +8 -0
- package/package.json +29 -0
- package/package.json.meta +7 -0
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
using System;
|
|
2
|
+
using System.Collections.Generic;
|
|
3
|
+
using UnityEngine;
|
|
4
|
+
|
|
5
|
+
namespace CesiumForUnity
|
|
6
|
+
{
|
|
7
|
+
/*
|
|
8
|
+
* This class functions like a std::variant in C++. It only contains
|
|
9
|
+
* either a Cesium3DTileset or a CesiumRasterOverlay.
|
|
10
|
+
*/
|
|
11
|
+
public class CesiumIonAsset
|
|
12
|
+
{
|
|
13
|
+
private enum AssetType
|
|
14
|
+
{
|
|
15
|
+
Tileset,
|
|
16
|
+
Overlay,
|
|
17
|
+
Null
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
private AssetType _type = AssetType.Null;
|
|
21
|
+
private Cesium3DTileset _tileset;
|
|
22
|
+
private CesiumIonRasterOverlay _overlay;
|
|
23
|
+
|
|
24
|
+
public CesiumIonAsset()
|
|
25
|
+
{
|
|
26
|
+
this._type = AssetType.Null;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
public CesiumIonAsset(Cesium3DTileset tileset)
|
|
30
|
+
{
|
|
31
|
+
this._type = AssetType.Tileset;
|
|
32
|
+
this._tileset = tileset;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
public CesiumIonAsset(CesiumIonRasterOverlay overlay)
|
|
36
|
+
{
|
|
37
|
+
this._type = AssetType.Overlay;
|
|
38
|
+
this._overlay = overlay;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
public Cesium3DTileset tileset
|
|
42
|
+
{
|
|
43
|
+
get => this._type == AssetType.Tileset ? this._tileset : null;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
public CesiumIonRasterOverlay overlay
|
|
47
|
+
{
|
|
48
|
+
get => this._type == AssetType.Overlay ? this._overlay : null;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
public string objectName
|
|
52
|
+
{
|
|
53
|
+
get
|
|
54
|
+
{
|
|
55
|
+
if (this._type == AssetType.Tileset && this._tileset != null)
|
|
56
|
+
{
|
|
57
|
+
return this._tileset.gameObject.name;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
if (this._type == AssetType.Overlay && this._overlay != null)
|
|
61
|
+
{
|
|
62
|
+
return this._overlay.gameObject.name;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
return "";
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
public string type
|
|
70
|
+
{
|
|
71
|
+
get
|
|
72
|
+
{
|
|
73
|
+
if (this._type == AssetType.Tileset)
|
|
74
|
+
{
|
|
75
|
+
return "Tileset";
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
if (this._type == AssetType.Overlay)
|
|
79
|
+
{
|
|
80
|
+
return "Raster Overlay";
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
return "";
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
public string componentType
|
|
88
|
+
{
|
|
89
|
+
get
|
|
90
|
+
{
|
|
91
|
+
if (this._type == AssetType.Tileset && this._tileset != null)
|
|
92
|
+
{
|
|
93
|
+
return this._tileset.GetType().Name;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
if (this._type == AssetType.Overlay && this._overlay != null)
|
|
97
|
+
{
|
|
98
|
+
return this._overlay.GetType().Name;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return "";
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
public string ionAccessToken
|
|
106
|
+
{
|
|
107
|
+
get
|
|
108
|
+
{
|
|
109
|
+
if (this._type == AssetType.Tileset && this._tileset != null)
|
|
110
|
+
{
|
|
111
|
+
return this._tileset.tilesetSource == CesiumDataSource.FromCesiumIon
|
|
112
|
+
? this._tileset.ionAccessToken : "";
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
if (this._type == AssetType.Overlay)
|
|
116
|
+
{
|
|
117
|
+
CesiumIonRasterOverlay ionOverlay = this._overlay as CesiumIonRasterOverlay;
|
|
118
|
+
return ionOverlay != null ? ionOverlay.ionAccessToken : "";
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
return "";
|
|
122
|
+
}
|
|
123
|
+
set
|
|
124
|
+
{
|
|
125
|
+
if (this._type == AssetType.Tileset && this._tileset != null)
|
|
126
|
+
{
|
|
127
|
+
this._tileset.ionAccessToken = value;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
if (this._type == AssetType.Overlay)
|
|
131
|
+
{
|
|
132
|
+
CesiumIonRasterOverlay ionOverlay = this._overlay as CesiumIonRasterOverlay;
|
|
133
|
+
if (ionOverlay != null)
|
|
134
|
+
{
|
|
135
|
+
ionOverlay.ionAccessToken = value;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
public long ionAssetID
|
|
142
|
+
{
|
|
143
|
+
get
|
|
144
|
+
{
|
|
145
|
+
if (this._type == AssetType.Tileset && this._tileset != null)
|
|
146
|
+
{
|
|
147
|
+
return this._tileset.tilesetSource == CesiumDataSource.FromCesiumIon
|
|
148
|
+
? this._tileset.ionAssetID : 0;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
if (this._type == AssetType.Overlay && this._overlay != null)
|
|
152
|
+
{
|
|
153
|
+
CesiumIonRasterOverlay ionOverlay = this._overlay as CesiumIonRasterOverlay;
|
|
154
|
+
return ionOverlay != null ? ionOverlay.ionAssetID : 0;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
return 0;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
public bool IsNull()
|
|
162
|
+
{
|
|
163
|
+
if(this._type == AssetType.Tileset)
|
|
164
|
+
{
|
|
165
|
+
return this._tileset == null;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
if(this._type == AssetType.Overlay)
|
|
169
|
+
{
|
|
170
|
+
return this._overlay == null;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
return true;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
public bool IsUsingCesiumIon()
|
|
177
|
+
{
|
|
178
|
+
if (this._type == AssetType.Tileset && this._tileset != null)
|
|
179
|
+
{
|
|
180
|
+
return this._tileset.tilesetSource == CesiumDataSource.FromCesiumIon;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
if (this._type == AssetType.Overlay && this._overlay != null)
|
|
184
|
+
{
|
|
185
|
+
CesiumIonRasterOverlay ionOverlay = this._overlay as CesiumIonRasterOverlay;
|
|
186
|
+
return ionOverlay != null;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
return false;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
using Reinterop;
|
|
2
|
+
using System;
|
|
3
|
+
using UnityEngine;
|
|
4
|
+
using UnityEditor;
|
|
5
|
+
using UnityEditor.IMGUI.Controls;
|
|
6
|
+
|
|
7
|
+
namespace CesiumForUnity
|
|
8
|
+
{
|
|
9
|
+
public class CesiumIonAssetsWindow : EditorWindow
|
|
10
|
+
{
|
|
11
|
+
public static CesiumIonAssetsWindow currentWindow = null;
|
|
12
|
+
|
|
13
|
+
[MenuItem("Cesium/Cesium ion Assets")]
|
|
14
|
+
public static void ShowWindow()
|
|
15
|
+
{
|
|
16
|
+
if (currentWindow == null)
|
|
17
|
+
{
|
|
18
|
+
// Get existing open window or if none, make a new one docked next
|
|
19
|
+
// to the Project / Console window.
|
|
20
|
+
Type[] siblingWindows = new Type[] {
|
|
21
|
+
Type.GetType("UnityEditor.ProjectBrowser,UnityEditor.dll"),
|
|
22
|
+
Type.GetType("UnityEditor.ConsoleWindow,UnityEditor.dll")
|
|
23
|
+
};
|
|
24
|
+
currentWindow = GetWindow<CesiumIonAssetsWindow>(siblingWindows);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
currentWindow.Show();
|
|
28
|
+
currentWindow.Focus();
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
private TreeViewState _assetsTreeState;
|
|
32
|
+
private IonAssetsTreeView _assetsTreeView;
|
|
33
|
+
private SearchField _searchField;
|
|
34
|
+
private CesiumIonServerSelector _serverSelector;
|
|
35
|
+
|
|
36
|
+
private void OnEnable()
|
|
37
|
+
{
|
|
38
|
+
this._serverSelector = new CesiumIonServerSelector(this);
|
|
39
|
+
|
|
40
|
+
// Load the icon separately from the other resources.
|
|
41
|
+
Texture2D icon = Resources.Load<Texture2D>("Cesium-64x64");
|
|
42
|
+
icon.wrapMode = TextureWrapMode.Clamp;
|
|
43
|
+
this.titleContent = new GUIContent("Cesium ion Assets", icon);
|
|
44
|
+
|
|
45
|
+
this._searchField = new SearchField();
|
|
46
|
+
|
|
47
|
+
CesiumIonSession session = CesiumIonServerManager.instance.currentSession;
|
|
48
|
+
session.Resume();
|
|
49
|
+
BuildTreeView();
|
|
50
|
+
CesiumIonSession.OnConnectionUpdated += this._assetsTreeView.Refresh;
|
|
51
|
+
CesiumIonSession.OnAssetsUpdated += this._assetsTreeView.Refresh;
|
|
52
|
+
CesiumIonServerManager.instance.CurrentChanged += this.OnCurrentServerChanged;
|
|
53
|
+
|
|
54
|
+
session.RefreshAssets();
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
private void OnDisable()
|
|
58
|
+
{
|
|
59
|
+
CesiumIonServerManager.instance.CurrentChanged -= this.OnCurrentServerChanged;
|
|
60
|
+
CesiumIonSession.OnConnectionUpdated -= this._assetsTreeView.Refresh;
|
|
61
|
+
CesiumIonSession.OnAssetsUpdated -= this._assetsTreeView.Refresh;
|
|
62
|
+
|
|
63
|
+
this._serverSelector.Dispose();
|
|
64
|
+
this._serverSelector = null;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
private void OnCurrentServerChanged(CesiumIonServerManager manager)
|
|
68
|
+
{
|
|
69
|
+
CesiumIonSession session = CesiumIonServerManager.instance.currentSession;
|
|
70
|
+
session.RefreshAssets();
|
|
71
|
+
this._assetsTreeView.Refresh();
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
void BuildTreeView()
|
|
75
|
+
{
|
|
76
|
+
this._assetsTreeState = new TreeViewState();
|
|
77
|
+
this._assetsTreeView = new IonAssetsTreeView(this._assetsTreeState);
|
|
78
|
+
this._assetsTreeView.Reload();
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
void OnGUI()
|
|
82
|
+
{
|
|
83
|
+
GUILayout.BeginHorizontal();
|
|
84
|
+
this.DrawAssetListPanel();
|
|
85
|
+
this.DrawAssetDescriptionPanel();
|
|
86
|
+
GUILayout.EndHorizontal();
|
|
87
|
+
|
|
88
|
+
// Force the window to repaint if the cursor is hovered over it.
|
|
89
|
+
// By default, it only repaints sporadically, so the hover and
|
|
90
|
+
// selection behavior will appear delayed.
|
|
91
|
+
if (mouseOverWindow == currentWindow)
|
|
92
|
+
{
|
|
93
|
+
Repaint();
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
void DrawAssetListPanel()
|
|
98
|
+
{
|
|
99
|
+
GUILayout.BeginVertical(GUILayout.Width(position.width / 2));
|
|
100
|
+
this.DrawRefreshButtonAndSearchBar();
|
|
101
|
+
GUILayout.Space(15);
|
|
102
|
+
this.DrawAssetTreeView();
|
|
103
|
+
GUILayout.EndVertical();
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
private string _assetsSearchString = "";
|
|
107
|
+
|
|
108
|
+
void DrawRefreshButtonAndSearchBar()
|
|
109
|
+
{
|
|
110
|
+
EditorGUILayout.BeginHorizontal();
|
|
111
|
+
|
|
112
|
+
EditorGUILayout.BeginVertical();
|
|
113
|
+
EditorGUILayout.Space(15.0f);
|
|
114
|
+
this._serverSelector.OnGUI();
|
|
115
|
+
EditorGUILayout.EndVertical();
|
|
116
|
+
|
|
117
|
+
if (GUILayout.Button(
|
|
118
|
+
new GUIContent(CesiumEditorStyle.refreshIcon, "Refresh the asset list"),
|
|
119
|
+
CesiumEditorStyle.refreshButtonStyle))
|
|
120
|
+
{
|
|
121
|
+
CesiumIonSession session = CesiumIonServerManager.instance.currentSession;
|
|
122
|
+
session.RefreshAssets();
|
|
123
|
+
this._assetsTreeView.Refresh();
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
EditorGUILayout.BeginVertical();
|
|
127
|
+
EditorGUILayout.Space(15);
|
|
128
|
+
|
|
129
|
+
string searchString = this._searchField.OnToolbarGUI(
|
|
130
|
+
this._assetsSearchString,
|
|
131
|
+
GUILayout.Height(EditorGUIUtility.singleLineHeight)
|
|
132
|
+
);
|
|
133
|
+
|
|
134
|
+
if (searchString != null)
|
|
135
|
+
{
|
|
136
|
+
searchString = searchString.Trim();
|
|
137
|
+
if (!searchString.Equals(this._assetsSearchString))
|
|
138
|
+
{
|
|
139
|
+
this._assetsSearchString = searchString;
|
|
140
|
+
this._assetsTreeView.searchString = this._assetsSearchString;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
else if (this._assetsSearchString.Length > 0)
|
|
144
|
+
{
|
|
145
|
+
this._assetsSearchString = "";
|
|
146
|
+
this._assetsTreeView.searchString = this._assetsSearchString;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
EditorGUILayout.EndVertical();
|
|
150
|
+
EditorGUILayout.EndHorizontal();
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
void DrawAssetTreeView()
|
|
154
|
+
{
|
|
155
|
+
// Use this to get the corner of the rect that the TreeView should fill.
|
|
156
|
+
GUILayout.FlexibleSpace();
|
|
157
|
+
Rect viewRect = GUILayoutUtility.GetLastRect();
|
|
158
|
+
viewRect.width = position.width / 2.0f;
|
|
159
|
+
|
|
160
|
+
this._assetsTreeView.OnGUI(viewRect);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
private static bool IsSupportedTileset(string type)
|
|
164
|
+
{
|
|
165
|
+
return type == "3DTILES" || type == "TERRAIN";
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
private static bool IsSupportedImagery(string type)
|
|
169
|
+
{
|
|
170
|
+
return type == "IMAGERY";
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
private Vector2 _scrollPosition = Vector2.zero;
|
|
174
|
+
|
|
175
|
+
void DrawAssetDescriptionPanel()
|
|
176
|
+
{
|
|
177
|
+
if (this._assetsTreeView.GetAssetsCount() == 0)
|
|
178
|
+
{
|
|
179
|
+
return;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
int selectedId = this._assetsTreeState.lastClickedID;
|
|
183
|
+
if (selectedId <= 0 || selectedId > this._assetsTreeView.GetAssetsCount())
|
|
184
|
+
{
|
|
185
|
+
return;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
IonAssetDetails assetDetails = this._assetsTreeView.GetAssetDetails(selectedId);
|
|
189
|
+
|
|
190
|
+
GUILayout.Space(10);
|
|
191
|
+
this._scrollPosition = GUILayout.BeginScrollView(this._scrollPosition);
|
|
192
|
+
GUILayout.BeginVertical();
|
|
193
|
+
|
|
194
|
+
GUILayout.Label(assetDetails.name, CesiumEditorStyle.headerStyle);
|
|
195
|
+
GUILayout.Label("(ID: " + assetDetails.id + ")");
|
|
196
|
+
|
|
197
|
+
if (IsSupportedTileset(assetDetails.type))
|
|
198
|
+
{
|
|
199
|
+
GUILayout.BeginHorizontal();
|
|
200
|
+
GUILayout.FlexibleSpace();
|
|
201
|
+
if (GUILayout.Button(
|
|
202
|
+
"Add to Level",
|
|
203
|
+
CesiumEditorStyle.cesiumButtonStyle))
|
|
204
|
+
{
|
|
205
|
+
// Asset indices are offset from the tree item IDs by 1.
|
|
206
|
+
this._assetsTreeView.AddAssetToLevel(selectedId - 1);
|
|
207
|
+
}
|
|
208
|
+
GUILayout.FlexibleSpace();
|
|
209
|
+
GUILayout.EndHorizontal();
|
|
210
|
+
}
|
|
211
|
+
else if (IsSupportedImagery(assetDetails.type))
|
|
212
|
+
{
|
|
213
|
+
GUILayout.BeginHorizontal();
|
|
214
|
+
GUILayout.FlexibleSpace();
|
|
215
|
+
// TODO: once multiple overlays are supported, we need the option to
|
|
216
|
+
// add the asset as a layer.
|
|
217
|
+
GUIContent addOverlayAsBaseLayerContent = new GUIContent(
|
|
218
|
+
"Use as Tileset Base Layer",
|
|
219
|
+
"Makes this asset the base overlay on the selected tileset. " +
|
|
220
|
+
"If no tileset is selected, then the overlay will be applied to the " +
|
|
221
|
+
"first found tileset." +
|
|
222
|
+
"\n\n" +
|
|
223
|
+
"If the tileset already has an overlay it will be replaced. " +
|
|
224
|
+
"If no tileset exists in the level, Cesium World Terrain is added.");
|
|
225
|
+
if (GUILayout.Button(
|
|
226
|
+
addOverlayAsBaseLayerContent,
|
|
227
|
+
CesiumEditorStyle.cesiumButtonStyle))
|
|
228
|
+
{
|
|
229
|
+
// Asset indices are offset from the tree item IDs by 1.
|
|
230
|
+
this._assetsTreeView.AddOverlayToTerrain(selectedId - 1);
|
|
231
|
+
}
|
|
232
|
+
GUILayout.FlexibleSpace();
|
|
233
|
+
GUILayout.EndHorizontal();
|
|
234
|
+
}
|
|
235
|
+
else
|
|
236
|
+
{
|
|
237
|
+
GUILayout.BeginHorizontal();
|
|
238
|
+
GUILayout.FlexibleSpace();
|
|
239
|
+
GUILayout.Button(
|
|
240
|
+
"This type of asset is not currently supported",
|
|
241
|
+
CesiumEditorStyle.cesiumButtonDisabledStyle
|
|
242
|
+
);
|
|
243
|
+
GUILayout.FlexibleSpace();
|
|
244
|
+
GUILayout.EndHorizontal();
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
GUILayout.Label("Description", CesiumEditorStyle.subheaderStyle);
|
|
248
|
+
EditorGUILayout.LabelField(assetDetails.description, EditorStyles.wordWrappedLabel);
|
|
249
|
+
|
|
250
|
+
GUILayout.Label("Attribution", CesiumEditorStyle.subheaderStyle);
|
|
251
|
+
EditorGUILayout.LabelField(assetDetails.attribution, EditorStyles.wordWrappedLabel);
|
|
252
|
+
|
|
253
|
+
GUILayout.EndVertical();
|
|
254
|
+
GUILayout.EndScrollView();
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
using UnityEditor;
|
|
2
|
+
using UnityEngine;
|
|
3
|
+
|
|
4
|
+
namespace CesiumForUnity
|
|
5
|
+
{
|
|
6
|
+
[CustomEditor(typeof(CesiumIonRasterOverlay))]
|
|
7
|
+
public class CesiumIonRasterOverlayEditor : Editor
|
|
8
|
+
{
|
|
9
|
+
private CesiumIonRasterOverlay _ionOverlay;
|
|
10
|
+
private CesiumRasterOverlayEditor _rasterOverlayEditor;
|
|
11
|
+
|
|
12
|
+
private SerializedProperty _ionAssetID;
|
|
13
|
+
private SerializedProperty _ionAccessToken;
|
|
14
|
+
private SerializedProperty _ionServer;
|
|
15
|
+
|
|
16
|
+
private void OnEnable()
|
|
17
|
+
{
|
|
18
|
+
this._ionOverlay = (CesiumIonRasterOverlay)this.target;
|
|
19
|
+
this._rasterOverlayEditor =
|
|
20
|
+
(CesiumRasterOverlayEditor)Editor.CreateEditor(
|
|
21
|
+
this.target,
|
|
22
|
+
typeof(CesiumRasterOverlayEditor));
|
|
23
|
+
|
|
24
|
+
this._ionAssetID = this.serializedObject.FindProperty("_ionAssetID");
|
|
25
|
+
this._ionAccessToken = this.serializedObject.FindProperty("_ionAccessToken");
|
|
26
|
+
this._ionServer = this.serializedObject.FindProperty("_ionServer");
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
private void OnDisable()
|
|
30
|
+
{
|
|
31
|
+
if(this._rasterOverlayEditor != null)
|
|
32
|
+
{
|
|
33
|
+
DestroyImmediate(this._rasterOverlayEditor);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
public override void OnInspectorGUI()
|
|
38
|
+
{
|
|
39
|
+
this.serializedObject.Update();
|
|
40
|
+
|
|
41
|
+
EditorGUIUtility.labelWidth = CesiumEditorStyle.inspectorLabelWidth;
|
|
42
|
+
DrawTroubleshootButton();
|
|
43
|
+
EditorGUILayout.Space(5);
|
|
44
|
+
DrawIonProperties();
|
|
45
|
+
EditorGUILayout.Space(5);
|
|
46
|
+
DrawRasterOverlayProperties();
|
|
47
|
+
|
|
48
|
+
this.serializedObject.ApplyModifiedProperties();
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
private void DrawTroubleshootButton()
|
|
52
|
+
{
|
|
53
|
+
GUIContent troubleshootTokenContent = new GUIContent(
|
|
54
|
+
"Troubleshoot Token",
|
|
55
|
+
"Check if the Cesium ion token used to access this raster overlay is working " +
|
|
56
|
+
"correctly, and fix it if necessary.");
|
|
57
|
+
if (GUILayout.Button(troubleshootTokenContent))
|
|
58
|
+
{
|
|
59
|
+
IonTokenTroubleshootingWindow.ShowWindow(this._ionOverlay, false);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
private void DrawIonProperties()
|
|
64
|
+
{
|
|
65
|
+
GUIContent ionAssetIDContent = new GUIContent(
|
|
66
|
+
"ion Asset ID",
|
|
67
|
+
"The ID of the Cesium ion asset to use.");
|
|
68
|
+
EditorGUILayout.DelayedIntField(this._ionAssetID, ionAssetIDContent);
|
|
69
|
+
|
|
70
|
+
GUIContent ionAccessTokenContent = new GUIContent(
|
|
71
|
+
"ion Access Token",
|
|
72
|
+
"The access token to use to access the Cesium ion resource.");
|
|
73
|
+
EditorGUILayout.DelayedTextField(this._ionAccessToken, ionAccessTokenContent);
|
|
74
|
+
|
|
75
|
+
GUIContent ionServerContent = new GUIContent("ion Server", "The Cesium ion server to use.");
|
|
76
|
+
EditorGUILayout.PropertyField(this._ionServer, ionServerContent);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
private void DrawRasterOverlayProperties()
|
|
80
|
+
{
|
|
81
|
+
if (this._rasterOverlayEditor != null)
|
|
82
|
+
{
|
|
83
|
+
this._rasterOverlayEditor.OnInspectorGUI();
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|