# Run script on load of terrain

**URL:** <https://community.cesium.com/t/run-script-on-load-of-terrain/25882>\
**Category:** Cesium for Unity\
**Created:** [August 3, 2023, 10:23pm UTC](https://community.cesium.com/t/run-script-on-load-of-terrain/25882 "2023-08-03T22:23:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oliver\_Zhang](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/oliver_zhang/32/15232_2.png) [@Oliver\_Zhang](https://community.cesium.com/u/Oliver_Zhang)\
**Post date:** [August 3, 2023, 10:23pm UTC](https://community.cesium.com/t/run-script-on-load-of-terrain/25882/1 "2023-08-03T22:23:27Z")

</div>

Is there any event I can listen to so I can run code when the cesium terrain is finally loaded?

---

<div class="post-metadata">

**Author:** ![Kevin\_Ring](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/kevin_ring/32/2003_2.png) [@Kevin\_Ring](https://community.cesium.com/u/Kevin_Ring)\
**Post date:** [August 7, 2023, 4:15am UTC](https://community.cesium.com/t/run-script-on-load-of-terrain/25882/2 "2023-08-07T04:15:08Z")

</div>

Not at the moment. Keep an eye on this issue:

> <https://github.com/CesiumGS/cesium-unity/issues/296>
>
> In Cesium Native, there are progress events for when 3D tiles are loaded, but we… don't "bubble them up" to Cesium for Unity. It'd be nice to let the user access them.

Do keep in mind, though, that terrain will probably only ever completely finish loading if the camera is staying still. Otherwise, every time the camera moves, now data can and will be loaded.
