Created
October 20, 2021 11:28
-
-
Save SimonLeeGit/a249f97f31307fdfa4578013d47c1783 to your computer and use it in GitHub Desktop.
run unreal editor with project in linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
PROJECT_NAME="AgentSim" | |
ENGINE_PATH="${DIR}/../UnrealEngine" | |
PLATFORM_NAME="Linux" | |
SCRIPT_DIR="${ENGINE_PATH}/Engine/Build/BatchFiles" | |
if [ "$(uname)" = "Darwin" ]; then | |
# Setup Mono | |
source "$SCRIPT_DIR/Mac/SetupMono.sh" "$SCRIPT_DIR/Mac" | |
PLATFORM_NAME="Mac" | |
fi | |
if [ "$(uname)" = "Linux" ]; then | |
# Setup Mono | |
source "$SCRIPT_DIR/Linux/SetupMono.sh" "$SCRIPT_DIR/Linux" | |
fi | |
RUN_CMD="${ENGINE_PATH}/Engine/Binaries/${PLATFORM_NAME}/UE4Editor" | |
PROJECT_FILE="${DIR}/${PROJECT_NAME}.uproject" | |
echo "ENGINE_PATH=${ENGINE_PATH}" | |
echo "PROJECT_FILE=${PROJECT_FILE}" | |
${RUN_CMD} ${PROJECT_FILE} $@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment