Cesium for Unreal v1.7.0
v1.7.0 - 2021-11-01
This release includes support for Unreal Engine v4.26 and v4.27. Please select the appropriate ZIP for your version.
Breaking Changes 📣
- Removed
CesiumGlobeAnchorParent, which was deprecated in v1.3.0. TheCesiumGlobeAnchorParentfunctionality can be recreated using an empty actor with aCesiumGlobeAnchorComponent. - Removed the
FixTransformOnOriginRebaseproperty fromCesiumGeoreferenceComponent, and the component now always acts as if it is enabled. This should now work correctly even for objects that are moved by physics or other Unreal Engine mechanisms. - The
SnapToEastSouthUpfunction onCesiumGeoreferenceno longer resets the Scale back to 1.0. It only modifies the rotation. - The following
CesiumGeoreferenceComponentBlueprints and C++ functions no longer take aMaintainRelativeOrientationparameter. Instead, this behavior is controlled by theAdjustOrientationForGlobeWhenMovingproperty.MoveToLongitudeLatitudeHeightInaccurateMoveToLongitudeLatitudeHeightMoveToECEFInaccurateMoveToECEF
- Renamed
CesiumGeoreferenceComponenttoCesiumGlobeAnchorComponent. CesiumSunSkyhas been converted from Blueprints to C++. Backward compatibility should be preserved in most cases, but some less common scenarios may break.GlobeAwareDefaultPawn,DynamicPawn, andCesiumSunSkyno longer have aGeoreferenceproperty. Instead, they have aCesiumGlobeAnchorcomponent that has aGeoreferenceproperty.- The
Georeferenceproperty on most Cesium types can now be null if it has not been set explicitly in the Editor. To get the effective Georeference, including one that has been discovered in the level, use theResolvedGeoreferenceproperty or call theResolveGeoreferencefunction. - Removed the option to locate the Georeference at the "Bounding Volume Origin". It was confusing and almost never useful.
- The
CheckForNewSubLevelsandJumpToCurrentLevelfunctions inCesiumGeoreferencehave been removed. New sub-levels now automatically appear without an explicit check, and the current sub-level can be changed using the standard Unreal Engine Levels panel. - Removed the
CurrentLevelIndexproperty fromCesiumGeoreference. The sub-level that is currently active in the Editor can be queried with theGetCurrentLevelfunction of theWorld. - Removed the
SunSkyproperty fromCesiumGeoreference. TheCesiumSunSkynow holds a reference to theCesiumGeoreference, rather than the other way around. - The following Blueprints and C++ functions on
CesiumGeoreferencehave been renamed. CoreRedirects have been provided to handle the renames automatically for Blueprints.TransformLongitudeLatitudeHeightToUetoTransformLongitudeLatitudeHeightToUnrealInaccurateTransformLongitudeLatitudeHeightToUetoInaccurateTransformLongitudeLatitudeHeightToUnrealTransformUeToLongitudeLatitudeHeighttoTransformLongitudeLatitudeHeightToUnrealInaccurateTransformUeToLongitudeLatitudeHeighttoInaccurateTransformUnrealToLongitudeLatitudeHeightTransformEcefToUetoTransformEcefToUnrealInaccurateTransformEcefToUetoInaccurateTransformEcefToUnrealTransformUeToEceftoTransformUnrealToEcefInaccurateTransformUeToEceftoInaccurateTransformUnrealToEcefTransformRotatorUeToEnutoTransformRotatorUnrealToEastNorthUpInaccurateTransformRotatorUeToEnutoInaccurateTransformRotatorUnrealToEastNorthUpTransformRotatorEnuToUetoTransformRotatorEastNorthUpToUnrealInaccurateTransformRotatorEnuToUetoInaccurateTransformRotatorEastNorthUpToUnreal
- The following C++ functions on
CesiumGeoreferencehave been removed:GetGeoreferencedToEllipsoidCenteredTransformandGetEllipsoidCenteredToGeoreferencedTransformmoved toGeoTransforms, which is accessible via thegetGeoTransformsfunction onCesiumGeoreference.GetUnrealWorldToEllipsoidCenteredTransformhas been replaced withTransformUnrealToEcefexcept that the latter takes standard Unreal world coordinates rather than absolute world coordinates. If you have absolute world coordinates, subtract the World'sOriginLocationbefore calling the new function.GetEllipsoidCenteredToUnrealWorldTransformhas been replaced withTransformEcefToUnrealexcept that the latter returns standard Unreal world coordinates rather than absolute world coordinates. If you want absolute world coordinates, add the World'sOriginLocationto the return value.AddGeoreferencedObjectshould be replaced with a subscription to the newOnGeoreferenceUpdatedevent.
Additions 🎉
- Improved the workflow for managing georeferenced sub-levels.
CesiumSunSkynow automatically adjusts the atmosphere size based on the player Pawn's position to avoid tiled artifacts in the atmosphere when viewing the globe from far away.GlobeAwareDefaultPawnand derived classes likeDynamicPawnnow have aCesiumGlobeAnchorComponentattached to them. This allows more consistent movement on the globe, and allows the pawn's Longitude/Latitude/Height or ECEF coordinates to be specified directly in the Editor.CesiumSunSkynow has anEnableMobileRenderingflag that, when enabled, switches to a mobile-compatible atmosphere rendering technique.CesiumCartographicPolygon'sGlobeAnchorandPolygonare now exposed in the Editor and to Blueprints.- Added
InaccurateGetLongitudeLatitudeHeightandInaccurateGetECEFfunctions toCesiumGlobeAnchorComponent, allowing access to the current position of a globe-anchored Actor from Blueprints. - Added support for collision object types on 'ACesium3DTileset' actors.
Fixes 🔧
- Cesium objects in a sub-level will now successfully find and use the
CesiumGeoreferenceandCesiumCreditSystemobject in the Persistent Level when these properties are left unset. For best results, we suggest removing all instances of these objects from sub-levels. - Fixed a bug that made the Time-of-Day widget forget the time when it was closed and re-opened.
- Undo/Redo now work more reliably for
CesiumGlobeAnchorproperties. - We now explicitly free the
PlatformDataand renderer resources associated withUTexture2Dinstances created for raster overlays when the textures are no longer needed. By relying less on the Unreal Engine garbage collector, this helps keep memory usage lower. It also keeps memory from going up so quickly in the Editor, which by default does not run the garbage collector at all.
In addition to the above, this release updates cesium-native from v0.8.0 to v0.9.0. See the changelog for a complete list of changes in cesium-native.