# How can I rename a plugin and not break all blueprints?

**URL:** <https://forums.unrealengine.com/t/how-can-i-rename-a-plugin-and-not-break-all-blueprints/343240>\
**Category:** Plugins\
**Tags:** settings, unreal-engine, editor, Plugins, question, CPP\
**Created:** [January 6, 2016, 2:13am UTC](https://forums.unrealengine.com/t/how-can-i-rename-a-plugin-and-not-break-all-blueprints/343240 "2016-01-06T02:13:51Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![xdbxdbx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xdbxdbx](https://forums.unrealengine.com/u/xdbxdbx)\
**Post date:** [January 6, 2016, 2:13am UTC](https://forums.unrealengine.com/t/how-can-i-rename-a-plugin-and-not-break-all-blueprints/343240/1 "2016-01-06T02:13:51Z")

</div>

Hello,

I’m trying to refactor some code and decided it might be a good idea to rename one of my plugins. I then quickly realized its not straight forward as every blueprint references its classes by name including the plugin name it seems.

I tried adding an active class redirect to DefaultEngine.ini in [/Script/Engine.Engine] as follows (an example) without luck:  
+ActiveClassRedirects=(OldClassName=”MyPluginManager”,NewClassName=”/Script/NewPluginName.MyPluginManager”)

I’ve also tried various variations of the above. Is there an easy way to do this? or am I stuck with the old name?

Thanks!

---

<div class="post-metadata">

**Author:** ![ManuKuma](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ManuKuma](https://forums.unrealengine.com/u/ManuKuma)\
**Post date:** [April 26, 2017, 9:29am UTC](https://forums.unrealengine.com/t/how-can-i-rename-a-plugin-and-not-break-all-blueprints/343240/2 "2017-04-26T09:29:12Z")

</div>

;+ActiveClassRedirects=(OldClassName=“CaptureBinder”,NewClassName=“/Script/Capture.CaptureBinder”); Class moved to Plugin (Capture is the Module name, not the Plugin name)  
I found out the package path by creating a new blueprint from the moved class and looking into the blueprint file with an text editor.

---

<div class="post-metadata">

**Author:** ![A7E7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@A7E7](https://forums.unrealengine.com/u/A7E7)\
**Post date:** [February 16, 2019, 7:58pm UTC](https://forums.unrealengine.com/t/how-can-i-rename-a-plugin-and-not-break-all-blueprints/343240/3 "2019-02-16T19:58:13Z")

</div>

I’ve solved it by using **core redirects inside the DefaultEngine.ini**

[https://docs.unrealengine.com/en-us/Programming/Assets/CoreRedirects](https://docs.unrealengine.com/en-us/Programming/Assets/CoreRedirects)

```
[CoreRedirects]
+PackageRedirects=(OldName="/OldPluginName/", NewName="/NewPluginName/", MatchSubstring=true)

```

Afterwards, you should make sure to **resave all assets** by right clicking on the plugin content folder and selecting **Resave all**.

Then make sure to **remove that line again** from the DefaultEngine.ini!

---

<div class="post-metadata">

**Author:** ![redhousegames](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/redhousegames/32/461590_2.png) [@redhousegames](https://forums.unrealengine.com/u/redhousegames)\
**Post date:** [July 29, 2019, 7:43pm UTC](https://forums.unrealengine.com/t/how-can-i-rename-a-plugin-and-not-break-all-blueprints/343240/4 "2019-07-29T19:43:54Z")

</div>

I found I also had to add these redirectors to the **[CoreRedirects]** section

```
+ClassRedirects=(OldName="/Script/OldPluginName.",NewName="/Script/NewPluginName.",MatchSubstring=true)
+StructRedirects=(OldName="/Script/OldPluginName.",NewName="/Script/NewPluginName.",MatchSubstring=true)
```

---

<div class="post-metadata">

**Author:** ![Vaei](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/vaei/32/710746_2.png) [@Vaei](https://forums.unrealengine.com/u/Vaei)\
**Post date:** [August 13, 2023, 5:06am UTC](https://forums.unrealengine.com/t/how-can-i-rename-a-plugin-and-not-break-all-blueprints/343240/5 "2023-08-13T05:06:43Z")

</div>

> [@A7E7](#):
>
> ```auto
> [CoreRedirects]
> +PackageRedirects=(OldName="/OldPluginName/", NewName="/NewPluginName/", MatchSubstring=true)
> 
> ```

This format worked for me. There are so many different ways of specifying OldName and NewName that just don’t work (at least in UE5.1). Even the official docs had it wrong.

---

<div class="post-metadata">

**Author:** ![fkkcloud](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@fkkcloud](https://forums.unrealengine.com/u/fkkcloud)\
**Post date:** [March 14, 2024, 10:30am UTC](https://forums.unrealengine.com/t/how-can-i-rename-a-plugin-and-not-break-all-blueprints/343240/6 "2024-03-14T10:30:50Z")

</div>

> [@A7E7](#):
>
> ```auto
> [CoreRedirects]
> +PackageRedirects=(OldName="/OldPluginName/", NewName="/NewPluginName/", MatchSubstring=true)
> 
> ```

What if I want to move the class from the plugin to Game’s Source class? How do I redirect that?

---

<div class="post-metadata">

**Author:** ![spereku](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/spereku/32/1204610_2.png) [@spereku](https://forums.unrealengine.com/u/spereku)\
**Post date:** [September 25, 2024, 8:28pm UTC](https://forums.unrealengine.com/t/how-can-i-rename-a-plugin-and-not-break-all-blueprints/343240/7 "2024-09-25T20:28:40Z")

</div>

Now:

[CoreRedirects]  
+PackageRedirects=(OldName=“/OldPluginName”, NewName=“/NewPluginName”, MatchSubstring=true)

Don’t add a slash to the end, it won’t work.

Just in case, I will also say that this line should be in the .ini located in the plugin, not in the project. For example: DefaultYouPluginName.ini

---

<div class="post-metadata">

**Author:** ![FergiusTerro](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/fergiusterro/32/1020723_2.png) [@FergiusTerro](https://forums.unrealengine.com/u/FergiusTerro)\
**Post date:** [November 21, 2024, 2:36pm UTC](https://forums.unrealengine.com/t/how-can-i-rename-a-plugin-and-not-break-all-blueprints/343240/8 "2024-11-21T14:36:50Z")

</div>

You can also check out [the article](https://dev.epicgames.com/community/learning/tutorials/pLXl/unreal-engine-plugin-demo-development-removing-source-code-and-renaming-plugin-with-blueprints-inside) by the team that faced this problem to develop a demo version of the GLS plugin.
