Conflicts occur when another team member makes changes to an asset that you have also changed, and you try to update your project with those changes. Collaborate automatically attempts to merge files and informs you if the attempt fails due to a conflict. For text files, Collaborate merges files using the currently configured merge tool. For scenes and other files using the YAML format, Collaborate uses Unity’s Smart Merge tool to perform the merge.
您可以通过经常发布细小更改并与您的团队成员进行沟通来减少冲突的发生。进行中 (In-Progress) 功能可以帮助您减少场景和预制件的冲突。想了解更多相关信息,请参阅进行中 (In-Progress) 编辑通知。
您可以在 Unity Editor 的偏好设置中设置外部合并工具:
以下合并工具适用于 Collaborate:
使用其他外部合并工具可能会遇到问题。
After merging files, if there are any assets with conflicts, Unity displays a red warning icon on the collaborate button in the Editor toolbar. To view a list of assets with conflicts, click the collaborate button.
When you hover over an asset in the list, the conflicts dialog shows four actions for each asset with a conflict. You can:
The image below illustrates the icons that are available on conflicted items:
要查看冲突,请将鼠标悬停在冲突的文件上并单击眼睛图标。
Note: You cannot view changes to image files such as .pngs.
You can use an external merge tool to resolve conflicts on text-based files. To resolve the conflict using an external merge tool, click the merge icon.
To replace the version of the asset in the cloud with your version of the asset, click the up arrow icon.
To discard your version of the asset and apply the version in the cloud to your local project, click the down arrow icon.
• 2017–05–16 页面已修订但未经编辑审查
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.