Skip to content

Cesium for Unity v0.3.0

Choose a tag to compare

@kring kring released this 01 Mar 12:50
e6a7b74

Cesium for Unity works on Windows (x86-64), macOS (x86-64 and Apple Silicon), Android (ARM64 and x86-64), and iOS.

πŸš€ Get Started

  1. Download Cesium for Unity Samples.
  2. Extract the .zip file into a suitable location on your computer.
  3. If you have Unity Hub installed, click the "Open" button under the "Projects" tab. Otherwise, open the Unity Editor directly and select "Open Project". Then, point it to the extracted directory. Unity will load the project and also download Cesium for Unity using the Package Manager.
  4. In the Asset Browser, select and load Assets -> Scenes -> 01_CesiumWorld. You can also select other scenes as you browse and explore the samples.

Or, to learn how to add it to your own project, see the Cesium for Unity Quickstart.

Have questions? Ask them on the community forum.

πŸ•™ Change Log

Breaking Changes πŸ“£
  • Removed the positionAuthority, unityX, unityY, and unityZ properties from CesiumGlobeAnchor. Also removed the SetPositionUnity method.
  • Removed the CesiumGlobeAnchorPositionAuthority enum. The authoritative position is now always found in the positionGlobeFixed property. The object's Unity world position can be obtained from its Transform.
  • Marked the longitude, latitude, and height properties on CesiumGlobeAnchor as obsolete. Use the longitudeLatitudeHeight property instead.
  • Marked the ecefX, ecefY, and ecefZ properties on CesiumGlobeAnchor as obsolete. Use the positionGlobeFixed property instead.
  • Marked SetPositionLongitudeLatitudeHeight and SetPositionEarthCenteredEarthFixed methods on CesiumGlobeAnchor as obsolete. Set the longitudeLatitudeHeight or positionGlobeFixed property instead.
  • Replaced MetadataProperty with CesiumFeature. Metadata features are now separated based on feature tables where properties are accessed by name.
  • Replaced CesiumMetadata.GetProperties with CesiumMetadata.GetFeatures, which returns an array of CesiumFeatures.
Additions πŸŽ‰
  • Added support for rendering point clouds (pnts).
  • CesiumGlobeAnchor now stores a precise, globe-relative orientation and scale in addition to position.
  • Added localToGlobeFixedMatrix, longitudeLatitudeHeight, positionGlobeFixed, rotationGlobeFixed, rotationEastUpNorth, scaleGlobeFixed, and scaleEastUpNorth properties to CesiumGlobeAnchor.
  • Added the Restart method to CesiumGlobeAnchor, which can be use to reinitialize the component from its serialized values.
  • Moved the Cesium tileset shaders from the Shader Graphs shader category to the new Cesium shader category.
  • Added CesiumDebugColorizeTilesRasterOverlay to visualize how a tileset is divided into tiles.
Fixes πŸ”§
  • Fixed a bug that prevented caching of 3D Tiles and overlay requests.
  • Fixed a bug that could cause the Cesium ion Token Troubleshooting panel to crash the Unity Editor.
  • Added a workaround for a crash in the Burst Compiler (bcl.exe) in Unity 2022.2 when using il2cpp.
  • Fixed a bug that could cause incorrect metadata to be associated with a feature, especially in Draco-encoded tiles.

In addition to the above, this release updates cesium-native from v0.21.3 to v0.22.0. See the changelog for a complete list of changes in cesium-native.