Scenes and prefabs
A scene is text, so git would combine two people’s changes to one line by line. But a scene is a web of things that name each other by number, and two changes to different lines can still leave one that does not open. So in a game made with an engine Saturn knows, these are files that cannot be combined, without the project saying so:
| Engine | Known by | Kept whole |
|---|---|---|
| Unity | ProjectSettings beside Assets |
.unity, .prefab |
| Godot | project.godot |
.tscn |
| Roblox | Rojo’s *.project.json |
.rbxlx, .rbxmx |
| Unreal | a .uproject file |
nothing more: its assets and maps are not text to begin with |
The engine is looked for at the top of the game’s folder and in each folder directly inside it.
Such a file is held by the work that changes it, like a model. When two people change one all the same, nothing is combined: save stops with both versions whole, and one is picked with --keep.
Saying otherwise
Section titled “Saying otherwise”.gitattributes still decides wherever it says otherwise:
| Line | What it does |
|---|---|
*.unity merge |
Has scenes combined line by line again |
*.unity merge=unityyamlmerge |
Hands them to a tool of the team’s own |
*.unity -lockable |
Keeps them whole without holding them |
In a game made with none of these engines, a file with one of those endings is text like any other.
On Saturn Rings, two people can change different things in one scene, and a part of a scene can be held on its own.