I recently had a need to migrate an Unreal Editor Enumeration to C++ and had no intention of manually changing every reference for my own sanity. I figured out the following table-cloth-swap magic trick to swap enums with minimal manual tweaking:
Preparation: - Back up everything. Seriously! Do that
git commit
git commit
, make a zip, whatever. - Create your equivalent enum (with
UENUM(BlueprintType)
UENUM(BlueprintType)
) in C++ - In Unreal Editor rename your old UE Enumeration (eg; stick "Old" on the end) if it has the same name as the C++ enum to make migration and testing easier. Once renamed, right-click your top mod folder and "Fix Up Redirectors" - Build your mod (Visual Studio build for Development Editor) then load Unreal Editor again and check your C++ enum is behaving and equivalent to the old UE Enumeration - they won't talk nicely yet...