I would like to integrate Cesium for Unity into a project that uses Unity 2019.4.4 and the built-in render engine (not URP or HDRP). Is there any old version or fork of Cesium for Unity that will work with Unity 2019 and the built-in render engine?
Cesium for Unity works with the built-in render pipeline. However, the earliest version it has ever supported is 2021.3. We’ve never tried earlier versions, so we can’t guess what problems you might run into.
Thanks for your reply.
I assumed that Cesium for Unity doesn’t work with the built-in renderer because it says so here.
Cesium for Unity works with both the Universal Render Pipeline (URP) and High Definition Render Pipeline (HDRP). However, it does not support Unity’s built-in renderer. If you choose the empty 3D project as your template, the datasets loaded by Cesium will not render properly.
As for what happens if you import Cesium into Unity 2019, you get:
Cannot perform upm operation: Unable to add package [file:D:/username/Downloads/com.cesium.unity-1.6.1.tgz]:
Package com.cesium.unity@file:D:\username\Downloads\com.cesium.unity-1.6.1.tgz has invalid dependencies or related test packages:
com.unity.mathematics (dependency): Package [com.unity.mathematics@1.2.0] cannot be found
com.unity.shadergraph (dependency): Package [com.unity.shadergraph@12.1.6] cannot be found [NotFound]
UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()
I tried installing the newest versions of those missing packages that were available for Unity 2019 and then setting those versions in package.json
, but that just gives a whole lot of Roslyn and JSON errors that I don’t understand. I guess I’m out of luck.
Hi @Tostiman,
That note form the tutorial is outdated, and we’ll fix it as soon as possible. Thank you for pointing it out.
Unfortunately, I’m not sure if the older versions of those packages can fully support the Cesium for Unity plugin. Maybe you’ll have better luck building from source? Otherwise, I’m afraid we can’t be much help. Since early development, we’ve always used Unity 2021.3+ as our minimum supported version.
FYI, that note is still there.
Hi @Tostiman,
Thanks for letting us know! We made the change in our internal page editor, but it turns out there was an error with our build, so it never got published. The note has now been removed from the tutorial.
I am also trying to use this with Unity 2019, I can’t find any information
Hi @vrlife, welcome to the community!
As Janine said above, Cesium for Unity has never supported any version of Unity prior to 2021.3. We have no idea what would be involved in backporting it to older verisons, and have no plans to try. However, if you try building it yourself from source, and run into specific problems, we may be able to offer some advice about how to get around them.
I strongly suspect, though, that if your project is in active-enough development to be incorporating Cesium for Unity at this stage, you would be wise to invest the time to upgrade it to a version of Unity that isn’t 6 years old and no longer supported by Unity themselves, rather than investing the time in backporting Cesium for Unity.
Also, just so you know, the most recent versions of Cesium for Unity require Unity 2022.3+.