# Compile CesiumForUnityNative

**URL:** <https://community.cesium.com/t/compile-cesiumforunitynative/23333>\
**Category:** Cesium for Unity\
**Created:** [April 10, 2023, 7:46am UTC](https://community.cesium.com/t/compile-cesiumforunitynative/23333 "2023-04-10T07:46:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![76610744](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/76610744/32/12437_2.png) [@76610744](https://community.cesium.com/u/76610744)\
**Post date:** [April 10, 2023, 7:46am UTC](https://community.cesium.com/t/compile-cesiumforunitynative/23333/1 "2023-04-10T07:46:54Z")

</div>

Hello! I couldn’t find\<DotNet/CesiumForUnity/Cesium3DFileset. h\>when compiling CesiumForUnityNative. How can this be generated

 ![image](https://global.discourse-cdn.com/cesium/original/2X/f/fd9520560b8ecfced4e0cd72e9e17a6069d7d585.png)  
 ![image](https://global.discourse-cdn.com/cesium/original/2X/9/9a44a5639645e1459c2b9d1cceafc469b6feda7d.png)

---

<div class="post-metadata">

**Author:** ![janine](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/janine/32/5135_2.png) [@janine](https://community.cesium.com/u/janine)\
**Post date:** [April 10, 2023, 3:48pm UTC](https://community.cesium.com/t/compile-cesiumforunitynative/23333/2 "2023-04-10T15:48:48Z")

</div>

Hello,

I assume you’re following the [Developer Setup guide](https://github.com/CesiumGS/cesium-unity/blob/main/Documentation~/developer-setup.md) in the Cesium for Unity repository. First, make sure you’ve published Reinterop using this line:

```auto
dotnet publish Reinterop~ -o .

```

Click on the Unity editor to make sure it compiles the new code. Then, to actually make Reinterop generate files, you have to make a small edit to one of the files in the Cesium for Unity package. For example, you can open ConfigureReinterop.cs in Packages \> Cesium for Unity \> Runtime, and just add a line break. This will prompt Reinterop to generate the files.

---

<div class="post-metadata">

**Author:** ![76610744](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/76610744/32/12437_2.png) [@76610744](https://community.cesium.com/u/76610744)\
**Post date:** [April 10, 2023, 10:15pm UTC](https://community.cesium.com/t/compile-cesiumforunitynative/23333/3 "2023-04-10T22:15:55Z")

</div>

Thank you. We solved this problem according to the above method and completed the compilation work. But I encountered the following problem when opening the sample project with Unity.

 ![image](https://global.discourse-cdn.com/cesium/original/2X/6/6a4764929129cb5035846fa3ccb7adaa00f787a5.png)

---

<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:** [May 2, 2023, 9:01am UTC](https://community.cesium.com/t/compile-cesiumforunitynative/23333/4 "2023-05-02T09:01:06Z")

</div>

Assuming you compiled the native code correctly, simply restarting Unity should fix those errors.
