using UnityEngine; public class LoadTMSTilesExample:MonoBehaviour { private void Start() { // Intercepts requests to the download of the tile. OnlineMaps.instance.OnStartDownloadTile += OnStartDownloadTile; } private void OnStartDownloadTile(OnlineMapsTile tile) { // Load tile texture from cache. Texture2D tileTexture = new Texture2D(256, 256); int z = tile.zoom; int ymax = 1 << z; int y = ymax - tile.y - 1; // <<<----------- Here you load the texture of the tile. // Send texture to map. if (OnlineMaps.instance.target == OnlineMapsTarget.texture) { tile.ApplyTexture(tileTexture); OnlineMaps.instance.buffer.ApplyTile(tile); } else { tile.texture = tileTexture; tile.status = OnlineMapsTileStatus.loaded; } // Redraw map. OnlineMaps.instance.Redraw(); } }