Unreal migrate code

posted in: Non classé | 0

For Blueprint in the content, right clic on it, migrate.
For source code, you can:

Simple Way

Copy past the directory inside [Source/YourOldProject], add YourOldProject to Source/YourNewProject.Target > ExtraModuleName.AddRange && to YourNewProject.uproject add
“Modules”: [
{
“Name”: “YourOldProject”,
“Type”: “Runtime”,
“LoadingPhase”: “Default”
}

Fully Integrated Way

Copy your source into your new project source folder. inside theses .h sources, rename YOUROLDPROJECT_API to YOURNEWPROJECT_API.
If your blueprint reference to theses source, add inside Config/DefaultEngine.ini

[/Script/Engine.Engine]
+ActiveGameNameRedirects=(OldGameName=”/Script/OldName”, NewGameName=”/Script/NewName”)
+ActiveGameNameRedirects=(OldGameName=”/Script/YourOldProject.OldSource”, NewGameName=”/Script/YourNewProject.OldSource”)


Don’t forget
IMPLEMENT_PRIMARY_GAME_MODULE  that become
IMPLEMENT_GAME_MODULE