How does Unity save the "editor view" of the Scene View when you close?
If I reposition the scene view camera and close Unity, when I reopen Unity it remembers that I've changed the perspective of the scene view camera. That's cool. But it's also puzzling, there doesn't appear to be any file that is changed. I'm wondering how Unity persists the setup of the Scene View?
For those who would like to be able to reset the position of the scene view camera, one way to do that is to close and reopen the Scene View.
Actually, I should say that none of the files that Git is tracking are changed. It actually appears that quite a few files in my .gitignore have changed. Any ideas which ones should be included to preserve the state of the project (position of scene camera, UI layout, etc.)?
Answer by Hellium · Oct 14, 2019 at 07:02 AM
This information is not stored into your project.
On Windows, Unity stores several data about the Editor inside your C:\Users\<username>\AppData
folder.
What you are looking for is the file called LastLayout.dwlt
in the following folder:
C:\Users\<username>\AppData\Roaming\Unity\Editor-5.x\Preferences\Layouts
.
You can open this YAML file with a text editor.
Your answer
Follow this Question
Related Questions
Unity editor toggle Sceneviews skybox and effects 0 Answers
How do I get a cube to move parallel to the ground instead of to itself in the scene editor? 0 Answers
How to lock selection to an object in the scene view 0 Answers
How do I make Unity zoom in/out on the center of the viewport instead of the cursor? 0 Answers
Drawing a Mesh from an EditorTool 0 Answers