使用 Plastic SCM 版本控制软件,团队可以协作开发 Unity 项目。
了解如何设置 Plastic SCM。 学习如何在 Unity 中设置版本控制。
如果您修改了文件,Plastic SCM 会自动签出文件。您必须专门签出才能修改的唯一文件是项目设置文件。
在项目中本地编辑某些文件时,如果远程也编辑了这些文件,则会发生冲突。如果项目有冲突,您必须:
如果 Unity 认为需要在提交更改之前执行合并,则会提示您完成合并。这会转到 Plastic SCM 客户端。
如果传入的更改与本地更改冲突,则会在 Incoming changes 窗口中的冲突文件上显示一个问号图标。以下是使用 Plastic SCM 解决冲突与合并的快速指南:
要使用 Plastic SCM 来锁定文件,请执行以下操作:
../PlasticSCM/server
中找到服务器目录。rep:default lockserver:localhost:8087
*.unity
*.unity.meta
在此示例中,所有 .unity 和 .unity.meta 文件都将被锁定以便在存储库“default”上签出。
cm listlocks
有关锁定的更多信息,请参阅锁定:避免合并不可合并的文件和[配置独占签出(锁定)](https://www.plasticscm.com/documentation/administration/plastic-scm-version-control-administrator-guide#Chapter7:Configuringexclusivecheckout(Lock)。
PlasticSCM 不支持远程活动,但 Perforce 支持。因此,在 Editor 中,Plastic SCM 无法使用此功能。Project 窗口中不会显示 “Checked out Remote” 和 “Out of Sync” 之类的状态。
了解有关分布式版本控制的更多信息。
了解有关分布式和集中式版本控制的更多信息。
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.