2using System.Collections;
10 [ReinteropNativeImplementation(
"CesiumForUnityNative::CesiumIonRasterOverlayImpl",
"CesiumIonRasterOverlayImpl.h")]
11 [AddComponentMenu(
"Cesium/Cesium Ion Raster Overlay")]
12 [IconAttribute(
"Packages/com.cesium.unity/Editor/Resources/Cesium-24x24.png")]
16 private long _ionAssetID = 0;
23 get => this._ionAssetID;
26 this._ionAssetID = value;
32 private string _ionAccessToken =
"";
39 get => this._ionAccessToken;
42 this._ionAccessToken = value;
57 if (this._ionServer ==
null)
61 if (this._useDefaultServer)
66 this._useDefaultServer =
false;
71 return this._ionServer;
76 this._ionServer = value;
88 yield
return new WaitForSecondsRealtime(0.1f);
92 void ISerializationCallbackReceiver.OnBeforeSerialize()
96 void ISerializationCallbackReceiver.OnAfterDeserialize()
101 if (this._ionServer ==
null)
102 this._useDefaultServer =
true;
107 private bool _useDefaultServer =
false;
A tileset in the 3D Tiles format.
A CesiumRasterOverlay that uses an IMAGERY asset from Cesium ion.
override partial void RemoveFromTileset(Cesium3DTileset tileset)
long ionAssetID
The ID of the Cesium ion asset to use.
override partial void AddToTileset(Cesium3DTileset tileset)
CesiumIonServer ionServer
The Cesium ion server from which this raster overlay is loaded.
string ionAccessToken
The access token to use to access the Cesium ion resource.
Defines a Cesium ion Server.
static CesiumIonServer serverForNewObjects
Gets the current Cesium ion server that should be assigned to newly-created objects.
static CesiumIonServer defaultServer
Gets the default Cesium ion Server (ion.cesium.com).
A pyramid of 2D images - sometimes terabytes or more in size - that can be draped over a Cesium3DTile...
void Refresh()
Refreshes this overlay by calling RemoveFromTileset followed by AddToTileset.
void AddToTileset()
Adds this raster overlay to the Cesium3DTileset on the same game object.