文档

​
​

Development

User Acquisition

Monetization

工业

Unity Version Control

DevOps

On-prem

Gluon

Editor plug-in

Open Unity Dashboard

Unity Version Control

此页面不支持所选语言。
​
​
Unity Version Control
  • Overview
  • Cloud Repositories organization update
  • Installation
  • Use UVCS with the Unity Editor
  • Unity Version Control plugins
  • Concepts
  • Tutorials
    • Migrate from Git
    • Migrate from Perforce
    • Version Control settings
      • Manage users
      • Lock rules
      • Set up integrations
      • Create merge rules
      • Create a network allow list
      • Ignore files
      • Security scenarios
    • Configure the client
    • Version Control workflow
    • Version Control tools
  • On-Prem
  • Gluon
  • CLI and shortcut references
  • Release Notes
  1. Unity Version Control (previously Plastic SCM)

Lock rules

Manage lock rules for repositories and organizations.
阅读时间1 分钟
最后更新于 7 个月前

Locking (exclusive checkout) is useful for handling files that cannot be merged (3D assets, images, audio). You can configure lock rules so that UVCS knows which files to lock on checkout.
To access Lock rules, go to the Unity Dashboard, select DevOps > Settings > Lock Rules.
There are two types of lock rules:

Organization lock rule

This lock rule applies to all repositories that don’t have repository-specific rules. You can only create one rule per organization.
To set up an organization lock rule:
  1. Under Organization lock rule, select Configure.
  2. Select the Branches to apply the lock rule to.
  3. Enter the file extensions manually or select Generate common rules to populate with file extensions.
  4. Select Save.

Repository lock rules

These lock rules are specific to a repository and overwrite the organization lock rules. You can create as many repository-specific rules per organization.
To set up a repository-specific lock rule:
  1. From the Lock rules tab on the Settings page, go to the Repository lock rules section, and select Configure.
  2. Select the repository that the rule should apply to.
  3. Enter the Lock destinations (branches).
  4. Enter the file extensions manually or select Generate common rules to populate with file extensions.
  5. Select Save.

Exclude branches

When configuring lock rules, you can also define branches that are not affected by them.
Branch exclusion rules give you more control over how you set up automations, prototype branches or any configuration that fits with your workflow.

Delete lock rules

To delete a lock rule:
  1. From the Lock rules tab on the organizations page, select the lock rule you want to delete.
  2. Select Delete lock rule.

Copyright © 2026 Unity Technologies
法律信息隐私政策CookiesDocumentation Terms of Use请勿出售或分享我的个人信息您的隐私选择(Cookie 设置)

“Unity”、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属公司在美国和其他地方的商标或注册商标(此处查看更多信息)。其他名称或品牌是其各自所有者的商标。

为方便起见,一些页面是机器翻译的,可能包含不准确的内容。如有信息不一致的情况,以英文版本为准。

  • 在本页上
    • Organization lock rule

    • Repository lock rules

    • Exclude branches

    • Delete lock rules


报告此页面的问题