# How to rename Blueprint Function Library?

**URL:** <https://forums.unrealengine.com/t/how-to-rename-blueprint-function-library/488418>\
**Category:** Blueprint\
**Tags:** delete, rename, unreal-engine, question\
**Created:** [September 5, 2021, 4:51pm UTC](https://forums.unrealengine.com/t/how-to-rename-blueprint-function-library/488418 "2021-09-05T16:51:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Willymazur](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/willymazur/32/632945_2.png) [@Willymazur](https://forums.unrealengine.com/u/Willymazur)\
**Post date:** [September 5, 2021, 4:51pm UTC](https://forums.unrealengine.com/t/how-to-rename-blueprint-function-library/488418/1 "2021-09-05T16:51:02Z")

</div>

The “delete” and “rename” buttons do not work in the editor. I tried to change the name of the files in explorer and then rebuilt the VS files, but the Blueprint Function Library still has the same name

---

<div class="post-metadata">

**Author:** ![Valentinvis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/valentinvis/32/1008648_2.png) [@Valentinvis](https://forums.unrealengine.com/u/Valentinvis)\
**Post date:** [November 14, 2023, 9:39am UTC](https://forums.unrealengine.com/t/how-to-rename-blueprint-function-library/488418/2 "2023-11-14T09:39:56Z")

</div>

Kinda old question but in case someone else finds this, what I do to rename a `Blueprint Function Library` is the following:

1. Close Unreal Engine Editor;
2. Open `GameName.sln` and rename both `OldName.h` and `OldName.cpp` to the new name (ex: `Name.h`, `Name.cpp`), then go into `Name.h` for your blueprint and rename on top `#include "OldName.generated.h"` to your new name (ex: `#include "Name.generated.h"`);
3. After that, rename from `class GAMENAME_API UOldName : public UBlueprintFunctionLibrary` to the new name with U before it (ex: `class GAMENAME_API UName : public UBlueprintFunctionLibrary`
4. Now open `Name.cpp` and rename from `#include "OldName.h"` to the new name (ex: `#include "Name.h"`), and also rename the function header from `UOldName::` to the new name (ex: `UName::`), then close Visual Studio after saving both files;
5. Go to your project folder and delete the folders `Intermediate`, `.vs`, `Binaries`;
6. While holding down `Shift` key, right click on `GameName.uproject` and select `Generate Visual Studio project files`;
7. Open `GameName.sln`, click on `Build` and from there click on `Clean Solution`;
8. Click on `Build` and from there click on `Build Solution`.

Any functions you are using from that `Blueprint Function Library` won’t be affected if you don’t rename them as well.

Some of the steps might be optional, but I want to be thorough. Also [this](https://forums.unrealengine.com/t/folders-safe-to-delete-to-recompile-everything/669919/3) is a list with all the folders you can delete from your game folder, and recreate them without loosing data, except those from `SaveGames` containing your save game object files, which you can recreate them when running the game, or just don’t delete them.
