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
Kinda old question but in case someone else finds this, what I do to rename a Blueprint Function Library is the following:
- Close Unreal Engine Editor;
- Open
GameName.slnand rename bothOldName.handOldName.cppto the new name (ex:Name.h,Name.cpp), then go intoName.hfor your blueprint and rename on top#include "OldName.generated.h"to your new name (ex:#include "Name.generated.h"); - After that, rename from
class GAMENAME_API UOldName : public UBlueprintFunctionLibraryto the new name with U before it (ex:class GAMENAME_API UName : public UBlueprintFunctionLibrary - Now open
Name.cppand rename from#include "OldName.h"to the new name (ex:#include "Name.h"), and also rename the function header fromUOldName::to the new name (ex:UName::), then close Visual Studio after saving both files; - Go to your project folder and delete the folders
Intermediate,.vs,Binaries; - While holding down
Shiftkey, right click onGameName.uprojectand selectGenerate Visual Studio project files; - Open
GameName.sln, click onBuildand from there click onClean Solution; - Click on
Buildand from there click onBuild 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 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.