Hello Cesium community,
I’ve been trying to install Cesium for Unity for over 6 hours, but keep getting compilation errors on every attempt. I need help to resolve this issue.
My Environment:
-
OS: Windows 10/11
-
Unity Version: Tried both Unity 2022.3.62f3 LTS and Unity 6000.3.4f1
-
Cesium for Unity: Latest version (1.21.0)
-
Installation Method: Git URL via Package Manager
What I’ve tried:
-
Created multiple fresh/new projects -
Tried both Unity 2022.3 LTS and Unity 6 -
Deleted all Unity cache folders (%LOCALAPPDATA%\Unity\cache) -
Deleted Library, Packages, and Temp folders from projects -
Installed Linux Build Support (IL2CPP) -
Used English-only file paths (e.g., C:\CesiumTest) -
Ran Unity Hub as Administrator -
Tried Git URL method: https://github.com/CesiumGS/cesium-unity.git -
Tried Scoped Registry method (got SSL error) -
Completely uninstalled and reinstalled Unity
The Error: Every time I install Cesium, I get this dialog when opening the project:
“The project you are opening contains compilation errors. Entering Safe Mode allows you to resolve these errors without waiting for the rest of your project to import.”
Console shows errors like:
-
error CS8795: Partial method 'TestReinterop.cs(13,29)' must have implementation -
A meta data file (.meta) exists but its asset 'Packages/com.cesium.unity/Reinterop.dll' can't be found -
Couldn't delete Packages/com.cesium.unity/Reinterop.dll.meta because it's in an immutable folder
What I want to create: A flying game where players can fly over the Earth, enjoy scenery and night views, and land to walk around. That’s why I chose Cesium.
Questions:
-
Is there a known issue with Cesium for Unity 1.21.0 on Windows?
-
Should I try an older version like 1.11.0?
-
Are there any special Windows security settings that might block installation?
-
Could this be related to the issue discussed here: [link to the forum thread you found]
I really want to use Cesium for my project. Any help would be greatly appreciated!
Thank you.