Essentially, what I’m trying to do is reset a blueprint’s “code” so it reverts to its initial state, as it was when it first spawned. I already tried deleting and respawning the actor, but the issue is that I have multiple instance-editable variables on them that can’t be easily transferred to the new actors without completely rewriting the code.
When creating a blueprint with InstanceEditable variables these variables can be edited for each instance of this blueprint but will have the same code. So spawning the same blueprint will let you change the variables not the code. You can duplicate the blueprint or create a new one for other code.
When creating a parent blueprint you can create code that a child blueprint will inherit. But you can then also add additional code for every child.
Reverting: You can have a look at the Saved folder inside your project. Inside the Autosaves folder you might be lucky to find an old version of your blueprint.