Building Cesium Plugin - jgoffeney/Cesium4Unreal GitHub Wiki
References
Github Code
Source Directory
Create a short directory name in a root directory to clone the like H:/Dev. This prevents Windows issues with long path lengths.
Get Source
- Open Windows Powershell
- cd H:/Dev
- git clone https://github.com/CesiumGS/cesium-unreal-samples.git
- cd cesium-unreal-samples
- mkdir Plugins
- cd .\Plugins\
- git clone --recursive https://github.com/CesiumGS/cesium-unreal.git
- cd cesium-unreal
- git submodule update --init --recursive
Compile Code
- Open x86_x64 Cross Tools Command Prompt for VS 2019
- cd H:/D4/cesium-unreal-samples/Plugins/cesium-unreal/extern
- cmake -B build -S . -G "Visual Studio 16 2019" -A x64
- cmake --build build --config Release --target install
Install For Project
- Copy the directory H:/D4/cesium-unreal-samples/Plugins/cesium-unreal to your projects Plugins directory.
- The Plugins may need to be created in the base project directory.
Update Version
Open CesiumForUnreal.uplugin and update Engine Version to at least the major version of Unreal the plugin is being used for.
Miscellaneous
I also changed the Engine->Plugins->Marketplace->CesiumForUnreal directory name and its uplugin file (if it exists) to make sure the local plugin version is used.