![]() |
Cesium for Unity 1.15.2
|
A pyramid of 2D images - sometimes terabytes or more in size - that can be draped over a Cesium3DTileset. More...
Public Member Functions | |
delegate void | RasterOverlayLoadFailureDelegate (CesiumRasterOverlayLoadFailureDetails details) |
Encapsulates a method that receives details of a raster overlay load failure. | |
void | AddToTileset () |
Adds this raster overlay to the Cesium3DTileset on the same game object. | |
void | RemoveFromTileset () |
Removes this raster overlay from the Cesium3DTileset on the same game object. | |
void | Refresh () |
Refreshes this overlay by calling RemoveFromTileset followed by AddToTileset. | |
Protected Member Functions | |
void | AddToTileset (Cesium3DTileset tileset) |
When implemented in a derived class, adds the raster overlay to the given tileset. | |
void | RemoveFromTileset (Cesium3DTileset tileset) |
When implemented in a derived class, removes the raster overlay from the given tileset. | |
Properties | |
string | materialKey [get, set] |
The key to use to match this overlay to the corresponding parameters in the tileset's material. | |
bool | showCreditsOnScreen [get, set] |
Whether or not to force this raster overlay's credits to be shown on the main screen. | |
float | maximumScreenSpaceError [get, set] |
The maximum number of pixels of error when rendering this overlay. | |
int | maximumTextureSize [get, set] |
The maximum texel size of raster overlay textures, in either direction. | |
int | maximumSimultaneousTileLoads [get, set] |
The maximum number of overlay tiles that may simultaneously be in the process of loading. | |
long | subTileCacheBytes [get, set] |
The maximum number of bytes to use to cache sub-tiles in memory. | |
Events | |
static RasterOverlayLoadFailureDelegate | OnCesiumRasterOverlayLoadFailure |
An event that is raised when the raster overlay encounters an error that prevents it from loading. | |
A pyramid of 2D images - sometimes terabytes or more in size - that can be draped over a Cesium3DTileset.
Definition at line 11 of file CesiumRasterOverlay.cs.
|
inline |
Adds this raster overlay to the Cesium3DTileset on the same game object.
If the overlay is already added or if the game object does not have a Cesium3DTileset, this method does nothing.
Definition at line 171 of file CesiumRasterOverlay.cs.
|
abstractprotected |
When implemented in a derived class, adds the raster overlay to the given tileset.
tileset | The tileset. |
delegate void CesiumForUnity.CesiumRasterOverlay.RasterOverlayLoadFailureDelegate | ( | CesiumRasterOverlayLoadFailureDetails | details | ) |
Encapsulates a method that receives details of a raster overlay load failure.
details | The details of the load failure. |
|
inline |
Refreshes this overlay by calling RemoveFromTileset followed by AddToTileset.
If the game object does not have a Cesium3DTileset, this method does nothing.
Definition at line 204 of file CesiumRasterOverlay.cs.
|
inline |
Removes this raster overlay from the Cesium3DTileset on the same game object.
If the overlay is not yet added or if the game object does not have a Cesium3DTileset, this method does nothing.
Definition at line 190 of file CesiumRasterOverlay.cs.
|
abstractprotected |
When implemented in a derived class, removes the raster overlay from the given tileset.
tileset | The tileset. |
|
getset |
The key to use to match this overlay to the corresponding parameters in the tileset's material.
In the tileset's materials, an overlay requires parameters for its texture, texture coordinate index, and translation and scale. Overlays must specify a string key to match with the correct parameters. The format of these parameters is as follows.
Material keys are useful for specifying the order of the raster overlays, or distinguishing them for overlay-specific effects.
Definition at line 53 of file CesiumRasterOverlay.cs.
|
getset |
The maximum number of pixels of error when rendering this overlay.
This is used to select an appropriate level-of-detail.
When this property has its default value, 2.0, it means that raster overlay images will be sized so that, when zoomed in closest, a single pixel in the raster overlay maps to approximately 2x2 pixels on the screen.
Definition at line 92 of file CesiumRasterOverlay.cs.
|
getset |
The maximum number of overlay tiles that may simultaneously be in the process of loading.
Definition at line 130 of file CesiumRasterOverlay.cs.
|
getset |
The maximum texel size of raster overlay textures, in either direction.
Images created by this overlay will be no more than this number of texels in either direction.This may result in reduced raster overlay detail in some cases.
Definition at line 113 of file CesiumRasterOverlay.cs.
|
getset |
Whether or not to force this raster overlay's credits to be shown on the main screen.
If false, the credits are usually only shown on a "Data Attribution" popup.
Definition at line 70 of file CesiumRasterOverlay.cs.
|
getset |
The maximum number of bytes to use to cache sub-tiles in memory.
This is used by provider types that have an underlying tiling scheme that may not align with the tiling scheme of the geometry tiles on which the raster overlay tiles are draped. Because a single sub-tile may overlap multiple geometry tiles, it is useful to cache loaded sub-tiles in memory in case they're needed again soon. This property controls the maximum size of that cache.
Definition at line 154 of file CesiumRasterOverlay.cs.
|
static |
An event that is raised when the raster overlay encounters an error that prevents it from loading.
Definition at line 24 of file CesiumRasterOverlay.cs.