Hi,
The “rename directory” function no longer works in version 5.1, and I wonder if anyone found a solution.
I have tried both EditorAssetLibrary and EditorAssetSubsystem, but both don’t work.
Any suggestions would be greatly appreciated.
[Code 1]
import unreal
unreal.EditorAssetLibrary.rename_directory(“/Game/From” , “/Game/To”)
[Log 1]
Error: /Game/From/test - Invalid object name
Couldn’t rename ‘Blueprint /Game/From/test.test’.
LogEditorAssetSubsystem: Error: RenameDirectory failed: Could not rename the assets.
[Code 2]
unreal.get_editor_subsystem(unreal.EditorAssetSubsystem).rename_directory(“/Game/From” , “/Game/To”)
[Log 2]
Error: /Game/From/test - Invalid object name
Couldn’t rename ‘Blueprint /Game/From/test.test’.
LogEditorAssetSubsystem: Error: RenameDirectory failed: Could not rename the assets.