When importing cesium for unity, compilation errors occur

After introducing Cesium for Unity, I encountered a compilation error: “The name ‘XRSettings’ does not exist in the current context.” More errors appeared after installing XR Plugin Management. Screenshots are attached below. Can anyone provide assistance? Thank you.


Hi @UMMM,

Cesium for Unity does not depend on the com.unity.xr package, so it’s weird that there are compilation errors. Could you try seeing if these errors happen in the following environments:

  • In the Cesium for Unity Samples project? (You’re welcome to use this as a base for your own application!)
  • In a blank project?

Let us know what happens so we can try to troubleshoot from there. Thank you!