Save changes to scene made by blueprint

I developed a little helper blueprint to align some Actors to each other in the scene, using a function with “Call in Editor” enabled. Calling it (while not in play mode) works fine and my Actors get aligned as they should. However, it is not permanent, as when I restart the engine, they will all be set back to their previous locations and rotations. My current workaround is to manually move them in one direction and back again after aligning them, then their transforms will save. But that’s a rather ugly workaround, so is there any other options to keep the changes made by a blueprint?

I’m not sure if I fully understand, perhaps you could share some screenshots. However, as far as I’m aware, call in editor is like a button. you press it when you want to make that happen - in terms of saving in editor, perhaps, if you haven’t already, try using your code in the construction script instead of the event graph.

1 Like

You just have to save the level after aligning them.

1 Like

It’s what I do. Here is my current blueprint. It’s a function inside an EditorUtilityActor. Despite calling “Save Current Level” at the end, my changes will be gone the next time I open Unreal. Even if I manually save with ctrl+s afterwards.

I’ve uploaded a screenshot of my blueprint in the previous post. You’re correct, it’s a button in the details pane that I press to activate the function. That works, it’s just that the changes made by the function don’t seem to be permanent. The code is not in the event graph, it’s all inside the function.

Is there a kind of ‘commit edits’ function?

I see others had this problem and used ‘save current level’ or ‘save map’ to fix it.

Stuff that I’ve wanted to save after a construction script has run, had to be respawned, and the level saved, to make it permeant.

1 Like

I’ve also seen a person suggesting using Save Current Level and Save Map. I’m already using the former but when trying to use the “Save Map” node and selecting my map in the dropdown I can’t save the blueprint anymore as I get the following error:

Can’t save Path/BP_EditorAlignment.uasset: Graph is linked to object World /Game/Maps/Route2.Route2 (Unknown property) in external map

1 Like

Hi, I know exactly what you mean and I have been using the exact same workaround for a while now. I still could not find a solution for this… Did you to figure out a solution or a better workaround?

Save Current Map Solve my problem.