Cesium for Unity 1.15.2
Loading...
Searching...
No Matches
CesiumTileMapServiceRasterOverlay.cs
Go to the documentation of this file.
1using Reinterop;
2using UnityEngine;
3
4namespace CesiumForUnity
5{
10 [ReinteropNativeImplementation(
11 "CesiumForUnityNative::CesiumTileMapServiceRasterOverlayImpl",
12 "CesiumTileMapServiceRasterOverlayImpl.h")]
13 [AddComponentMenu("Cesium/Cesium Tile Map Service Raster Overlay")]
14 [IconAttribute("Packages/com.cesium.unity/Editor/Resources/Cesium-24x24.png")]
16 {
17 [SerializeField]
18 private string _url = "";
19
26 public string url
27 {
28 get => this._url;
29 set
30 {
31 this._url = value;
32 this.Refresh();
33 }
34 }
35
36 [SerializeField]
37 private bool _specifyZoomLevels = false;
38
45 {
46 get => this._specifyZoomLevels;
47 set
48 {
49 this._specifyZoomLevels = value;
50 this.Refresh();
51 }
52 }
53
54 [SerializeField]
55 [Min(0)]
56 private int _minimumLevel = 0;
57
61 public int minimumLevel
62 {
63 get => this._minimumLevel;
64 set
65 {
66 this._minimumLevel = value;
67 this.Refresh();
68 }
69 }
70
71 [SerializeField]
72 [Min(0)]
73 private int _maximumLevel = 10;
74
78 public int maximumLevel
79 {
80 get => this._maximumLevel;
81 set
82 {
83 this._maximumLevel = value;
84 this.Refresh();
85 }
86 }
87
89 protected override partial void AddToTileset(Cesium3DTileset tileset);
91 protected override partial void RemoveFromTileset(Cesium3DTileset tileset);
92 }
93}
A tileset in the 3D Tiles format.
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.
A raster overlay that directly accesses a Tile Map Service (TMS) server.
override partial void RemoveFromTileset(Cesium3DTileset tileset)
override partial void AddToTileset(Cesium3DTileset tileset)
string url
The base URL of the Tile Map Service (TMS).
bool specifyZoomLevels
True to directly specify minum and maximum zoom levels available from the server, or false to automat...