Cesium for Unreal 2.12.0
|
Our Travis CI automatically creates a plugin package on every commit to the Cesium for Unreal repo. But if you want to do it locally, there are a few things to keep in mind:
Packaging an Unreal Engine plugin makes it portable and you can use it as part of the Unreal Engine directory, to be used for all your Unreal projects. This is similar to installing it from the Unreal Engine Marketplace, except you can use non-release branches.
To package the plugin, follow the steps below:
cesium-unreal
directory, run the following command: bash "$UNREAL_ENGINE_DIR/Engine/Build/BatchFiles/RunUAT.sh" BuildPlugin -Plugin="/home/user/workspace/cesium-unreal/CesiumForUnreal.uplugin" -Package="/home/user/workspace/packages/CesiumForUnreal" -CreateSubFolder -TargetPlatforms=Mac
bash "$UNREAL_ENGINE_DIR/Engine/Build/BatchFiles/RunUAT.command" BuildPlugin -Plugin="/Users/user/workspace/cesium-unreal/CesiumForUnreal.uplugin" -Package="/Users/user/workspace/packages/CesiumForUnreal" -CreateSubFolder -TargetPlatforms=Mac+iOS
bash "$UNREAL_ENGINE_DIR/Engine/Build/BatchFiles/RunUAT.sh" BuildPlugin -Plugin="/home/user/workspace/cesium-unreal/CesiumForUnreal.uplugin" -Package="/home/user/workspace/packages/CesiumForUnreal" -CreateSubFolder -TargetPlatforms=Linux
CesiumForUnreal
to the Unreal Engine Plugins directory, example C:\Program Files\Epic Games\UE_4.26\Engine\Plugins\Marketplace\CesiumForUnreal
on Windows. Once the packged plugin is copied, all Unreal projects will be able to enable it.CesiumForUnreal
directory to a specific projects Plugins
directory, such as cesium-unreal-samples/Plugins/CesiumForUnreal
. In this case, the built plugin is only available to the specific project and will be prioritized over Engine-level copies of Cesium for Unreal. This doesn't work well with shipping builds especially on mobile platforms.