public void UpdateStats() { Statistics.RequestQueueLength = RequestManager.Count(t => t.Tileset == this); Statistics.ActiveDownloads = RequestManager.CountActiveDownloads(t => t.Tileset == this); Statistics.ProcessingQueueLength = ProcessingQueue.Count(t => t.Tileset == this); Statistics.DownloadedTiles = TileCache.Count(t => t.Tileset == this); Statistics.ReadyTiles = TileCache.Count(t => t.Tileset == this && t.ContentState == Unity3DTileContentState.READY); Unity3DTilesetStatistics.MaxLoadedTiles = TileCache.MaxSize; }