I am trying to merge a Unity scene my partner and I have been working on, using Smart Merge. My other assets and prefabs resolved the conflicts with Smart Merge just fine; however, one scene isn't merging at all.
In my .git/config file I added
[merge]
tool = unityyamlmerge
[mergetool "unityyamlmerge"]
trustExitCode = false
cmd = 'C:\\Program Files\\Unity\\Editor\\Data\\Tools\\UnityYAMLMerge.exe' merge -p "$BASE" "$REMOTE" "$LOCAL" "$MERGED"
I've also included a .gitattributes file containing
*.unity binary
*.prefab binary
*.asset binary
I've set my asset serilialization to 'Force Text' and Version Control to 'Visible Meta Files.'
Our prefabs and other assets merged fine, but one of our scenes doesn't merge at all.
When running the git mergetool
command in the terminal, it displays the conflicts for this specified scene, but then returns this at the end:
Left 563852304.Light.m_Color.r add as 0.8962264
Right 563852304.Light.m_Color.r add as 0.9433962
Left 610301896.GameObject.m_IsActive add as 0
Right 610301896.GameObject.m_IsActive add as 1
Left 610301898.Transform.m_LocalPosition.x add as -13.07
Right 610301898.Transform.m_LocalPosition.x add as -14.31
Left 610301898.Transform.m_LocalPosition.y add as 2.6
Right 610301898.Transform.m_LocalPosition.y add as 2.14
Left 610301898.Transform.m_RootOrder add as 8
Right 610301898.Transform.m_RootOrder add as 7
Left 869912137.Transform.m_LocalPosition.x add as -7.36
Right 869912137.Transform.m_LocalPosition.x add as -7.333
Left 869912137.Transform.m_LocalScale.x add as 4
Right 869912137.Transform.m_LocalScale.x add as 4.0070143
Conflict handling:
Xmas-Prototype-01/Assets/_Scenes/InitScene.unity seems unchanged.
Was the merge successful [y/n]?
There's more conflict, but too much to list.
This is the only file that hasn't merged with my local branch. Is there a way I can get this one scene to merge?
Thank you!