Building Cesium Plugin for Unreal Engine 5 - jgoffeney/Cesium4Unreal GitHub Wiki
Note
As of Jan 12, 2022 the Cesium plugin does not have an official release for Unreal 5 but there is a github branch. However it should be noted it is not kept current with the main branch and porting a project from UE4 to UE5 may necessitate working around the differences.
Differences
- CesiumSunSky does not exist as a C++ class so you have to use the blueprint version.
Building the Plugin
This Cesium Unreal github thread provides instructions and a video on how to build it. I used H:/Dev as my directory.
I have followed the instructions and it has built (beware of a funny dash before recursive for the final line of setting up github instructions). The video is handy for extra clarity. I did not opt for the Riderlink stuff and it still worked.
Note: The directory to run the build commands for my github code is H:\Dev\cesium-unreal-samples\Plugins\cesium-unreal\extern.
Installing the Plugin
The instructions specify creating your project and then installing the plugin which works. You will go to the base project directory and create a Plugins directory if it does not exist. Then copy the built plugin code (for me H:/Dev/cesium-unreal-samples/Plugins/cesium-unreal) into the project's Plugins directory. When you reopen the project the Cesium plugins will already be available.
Troubleshooting
- Different Version
- I get a message the plugin was created for a different version. Just agree the request to build it. It will come up again but you can ignore it.
- During the building the first time Unreal shut down but when I repeated the build request it worked fine.