- Home /
How to best store default SceneManager setup in git repo?
I have Library/ in my .gitignore as it is generally recommended.
On opening a project in the Unity Editor, the scene manager is initialized from Library/LastSceneManagerState.txt - after a clean .git checkout, that file is missing along with all other content from Library/
When opening the project for the first time, the Hierarchy always starts with a new Untitled scene, which does not make much sense so I have to tell the users which scene to open when trying out the project -- one additional, unnecessary step in the README...
Is there a way to define the default scene manager setup outside the Library/ directory. The best workaround I found was to add Library/LastSceneManagerState.txt to the git repo by force-overriding the .gitignore setting. It works but is really ugly...
Your answer
Follow this Question
Related Questions
Git and .scene/.prefab 2 Answers
Problems merging scene files - Not a valid YAML file 0 Answers
Get dirty state from a scene 3 Answers
How do i make a score system in the main menu. 1 Answer
Remove a prefab from all scenes at build 3 Answers