Skip to content

Commit

Permalink
Support Unreal Engine 5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
nutti committed Dec 29, 2024
1 parent d4ac8cb commit c2b1292
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 13 deletions.
3 changes: 1 addition & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ workflows:
- unreal-engine-ci
matrix:
parameters:
# TODO: The container image is not supported for 5.4.0.
unreal-engine-version: [
"4.27.0", "5.0.0", "5.1.0", "5.2.0", "5.3.0"
"4.27.0", "5.0.0", "5.1.0", "5.2.0", "5.3.0", "5.4.3", "5.5.1"
]
version: ["free", "full"]
- build-sample:
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ jobs:
fail-fast: false
matrix:
unreal_engine_version:
["4.27.0", "5.0.0", "5.1.0", "5.2.0", "5.3.0", "5.4.0"]
[
"4.27.0",
"5.0.0", "5.1.0", "5.2.0", "5.3.0", "5.4.0", "5.5.0"
]
version:
["free", "full"]
steps:
Expand All @@ -45,7 +48,7 @@ jobs:
mv BlueprintToRSTDoc_UE${{ matrix.unreal_engine_version }}_${{ matrix.version }}.zip release-plugin-${{ matrix.version }}
- name: Upload artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: BlueprintToRSTDoc_${{ matrix.version }}
path: "release-plugin-${{ matrix.version }}"
Expand All @@ -64,7 +67,7 @@ jobs:
mv samples/SampleProject.zip release-sample
- name: Upload artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: SampleProject
path: "release-sample"
Expand All @@ -78,7 +81,7 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v2
- name: Fetch Artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
path: dist
- name: Install hub command
Expand Down
2 changes: 1 addition & 1 deletion BlueprintToRSTDoc/BlueprintToRSTDoc.uplugin
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"VersionName": "1.2",
"FriendlyName": "Blueprint to reStructuredText Document",
"Description": "Generate reStructuredText (RST) Format Documents from Blueprints",
"EngineVersion": "5.4.0",
"EngineVersion": "5.5.0",
"Category": "Other",
"CreatedBy": "nutti (Colorful Pico)",
"CreatedByURL": "https://github.com/nutti/UEPlugin-BlueprintToRSTDoc",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,17 @@
#include "Common.h"
#include "EdGraphSchema_K2.h"
#include "Engine/UserDefinedEnum.h"
#include "Engine/UserDefinedStruct.h"
#include "GenericPlatform/GenericPlatformFile.h"
#include "HAL/FileManagerGeneric.h"
#include "Misc/EngineVersionComparison.h"
#include "Settings.h"

#if !UE_VERSION_OLDER_THAN(5, 5, 0)
#include "StructUtils/UserDefinedStruct.h"
#else
#include "Engine/UserDefinedStruct.h"
#endif

void ConvertBPNameToCPPName(FString& Out, const FString& Type)
{
Out = Type;
Expand Down
Binary file not shown.
4 changes: 2 additions & 2 deletions tools/remove_code.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set -eEu

SUPPORTED_VERSIONS=(
"4.26.0" "4.27.0"
"5.0.0" "5.1.0" "5.2.0" "5.3.0" "5.4.0"
"5.0.0" "5.1.0" "5.2.0" "5.3.0" "5.4.0" "5.5.0"
)

function usage() {
Expand All @@ -19,7 +19,7 @@ if [ $# -ne 4 ]; then
fi

SOURCE_DIR=${1}
ENGINE_VERSION=${2}
ENGINE_VERSION="${2%.*}.0"
FULL=0
if [ "${3}" = "full" ]; then
FULL=1
Expand Down
6 changes: 3 additions & 3 deletions tools/replace_engine_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set -eEu

SUPPORTED_VERSIONS=(
"4.26.0" "4.27.0"
"5.0.0" "5.1.0" "5.2.0" "5.3.0" "5.4.0"
"5.0.0" "5.1.0" "5.2.0" "5.3.0" "5.4.0" "5.5.0"
)

function usage() {
Expand All @@ -19,7 +19,7 @@ if [ $# -ne 2 ]; then
fi

source_dir=${1}
engine_version=${2}
engine_version="${2%.*}.0"

supported=0
for v in "${SUPPORTED_VERSIONS[@]}"; do
Expand All @@ -35,6 +35,6 @@ fi

# shellcheck disable=SC2044
for file in $(find "${source_dir}" -name "*.uplugin"); do
sed -i -e "s/\"EngineVersion\": \"5.4.0\",/\"EngineVersion\": \"${engine_version}\",/g" "${file}"
sed -i -e "s/\"EngineVersion\": \"5.5.0\",/\"EngineVersion\": \"${engine_version}\",/g" "${file}"
echo "Replaced engine version in ${file}"
done

0 comments on commit c2b1292

Please sign in to comment.