Topic: Know when OnlineMaps fully loaded texture
Hello,
I was working on a project that uses Online Maps to load OnlineMaps Tileset given world coordinates to take pictures with Render Cameras setup in my Unity scene.
My main issue is that I need to wait for the Map texture to be fully loaded (not partially or not loaded with grey colour displayed) and take 3 pictures for different camera rects, but I cannot find the correct event that tells me when the OnlineMaps texture is fully loaded.
I tried:
OnlineMaps.OnMapUpdated
OnlineMapsTileManager.OnTileLoaded
OnlineMapsTile.OnAllTilesLoaded
But none served me since they triggered but the texture was not ready. I also tried this solution:
https://infinity-code.com/atlas/online- … STile.html
But seems that I am working with a OnlineMaps TileSet, so this is not valid to check full map texture.
I tried using async methods with unity but sometimes it takes the wrong picture since the map texture loading time may vary.
Could you please help me on this matter? My purpose is to create some kind of coroutine to check everytime the map texture is fully loaded to take the picture, redraw map, take second picture, redraw,...
Best regards!