Save scene before renaming and relaodinggggg ahh

maybe i will same you some heartache :stuck_out_tongue:

2 Likes

@Cute I’ve did this before in the Project Boost section. It was easy to rebuild but unfortunately this level is harder to build again.
At least you’ll never forget this anymore. Because you’ve set true DontForgettoSaveBeforeRenamingScenes script in your mind’s component.

2 Likes

Saving often in small increments is almost always a good idea and especially if you’re about to wiggle at some fundamental details of the game’s structure.
Another good thing to do is to commit small steps into git (or whatever tool you use for tracking changes in your code).

And here’s the dilemma:

  • You can rename it from within Unity and Unity will track of things to adjust (like the Scene’s name was updated in the project build configuration), but this might bypass git’s methods of keeping track of the scene (it wouldn’t know that the new files are still the same scene, just renamed).
  • Or you do the renaming outside Unity with something like ā€œgit mvā€ and risk the project breaking if a reference doesn’t match anymore (most of the time the reference will be an internal ID and not the name so it should continue to work, or things could get really out of control, if a naming property was set that doesn’t match the file name anymore and Unity might get confused; and there’s another issue about this: If you rename the Scene-file there is a second ā€œmetaā€ file and that has to be renamed as well…)

Privacy & Terms