# Evaluating when all of the tiles are loaded

**URL:** <https://community.cesium.com/t/evaluating-when-all-of-the-tiles-are-loaded/28304>\
**Category:** Cesium for Unity\
**Created:** [November 24, 2023, 2:59pm UTC](https://community.cesium.com/t/evaluating-when-all-of-the-tiles-are-loaded/28304 "2023-11-24T14:59:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SebLev](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/seblev/32/16211_2.png) [@SebLev](https://community.cesium.com/u/SebLev)\
**Post date:** [November 24, 2023, 2:59pm UTC](https://community.cesium.com/t/evaluating-when-all-of-the-tiles-are-loaded/28304/1 "2023-11-24T14:59:44Z")

</div>

Hi,

I’m looking into the possibility of evaluating when the tilesets surrounding the player are loaded for a loading screen in Unity. I want to fade in when Cesium has completed its processes, basically.

Is there such a logic in place for Unity?

---

<div class="post-metadata">

**Author:** ![SebLev](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/seblev/32/16211_2.png) [@SebLev](https://community.cesium.com/u/SebLev)\
**Post date:** [November 24, 2023, 4:04pm UTC](https://community.cesium.com/t/evaluating-when-all-of-the-tiles-are-loaded/28304/2 "2023-11-24T16:04:45Z")

</div>

Edit:  
I found that using the following evaluation allows for something close enough to what I am looking for.

`private Cesium3DTileset m_CesiumTileset;`  
`...`  
`float progress = m_CesiumTileset.ComputeLoadProgress();`

If someone has a better solution, I am all ears.

Note:  
That solution does make it so sometimes the progression gets stuck. I still need to investigate as to whether or not this is caused by my own code, but I can become an annoyance if not dealt with.

Note2:  
After more tests, some tiles are simply longer to load than others, which can be confusing when it takes longer than the median time it usually takes. The progression doesn’t get stuck after all.

---

<div class="post-metadata">

**Author:** ![Brian\_Langevin](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/brian_langevin/32/14490_2.png) [@Brian\_Langevin](https://community.cesium.com/u/Brian_Langevin)\
**Post date:** [November 27, 2023, 5:34pm UTC](https://community.cesium.com/t/evaluating-when-all-of-the-tiles-are-loaded/28304/3 "2023-11-27T17:34:07Z")

</div>

ComputeLoadProgress is what I’d use.

If you find a bug where it’s not reaching completion successfully, please let us know.

---

<div class="post-metadata">

**Author:** ![SebLev](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/seblev/32/16211_2.png) [@SebLev](https://community.cesium.com/u/SebLev)\
**Post date:** [November 27, 2023, 6:10pm UTC](https://community.cesium.com/t/evaluating-when-all-of-the-tiles-are-loaded/28304/4 "2023-11-27T18:10:11Z")

</div>

Great.  
Thank you for the confirmation.  
Will do for the bug if my tests tell me the issue comes from Cesium.
