Assumes you:
- run it from the terminal inside your project
MyGamefolder - project folder name is the same as your project name
MyGame - project
MyGame.uprojectfile is in the folder - set the Unreal Engine version number correctly in the script
| PROJ=$(find . -name "*.uproject") | |
| if [ -z "$PROJ" ]; then | |
| echo "Run this from inside the folder containing your Unreal project - eg \"MyGame.uproject\"." | |
| exit 1; | |
| fi | |
| # Only major version as per pathname | |
| UNREAL_VERSION=5.6 | |
| PROJ_NAME=$(basename $PROJ .uproject) | |
| CUR_DIR=$(pwd) | |
| echo "Regenerating project files for ${PROJ_NAME}..." | |
| sh /Users/Shared/Epic\ Games/UE_${UNREAL_VERSION}/Engine/Build/BatchFiles/Mac/GenerateProjectFiles.sh \ | |
| -project=${CUR_DIR}/${PROJ_NAME}.uproject -game -engine |