Skip to content

Instantly share code, notes, and snippets.

@PapeCoding
Created March 9, 2020 15:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PapeCoding/06d548097484bd79d98f76d8afbcaa0c to your computer and use it in GitHub Desktop.
Save PapeCoding/06d548097484bd79d98f76d8afbcaa0c to your computer and use it in GitHub Desktop.
This allows to rename a C++ class without breaking every blueprint that inherits from it
# Open Configs/DefaultEngine.ini of your project and under [/Script/Engine.Engine] section add the below line:
+ActiveClassRedirects=(OldClassName="/Script/MyOldClassName",NewClassName="/Script/MyNewClassName")
# This can look like this in a plugin:
+ActiveClassRedirects=(OldClassName="/Script/MyPlugin.MyClass",NewClassName="/Script/MyPlugin.MyClass2")
# If you are not sure how the reference looks like, you can right click your C++ class in the editor and copy the reference
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment