文档

​
​

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
    • Organizations
    • Repositories
    • Workflows and partial replicas
    • Security
    • Dynamic workspaces (Windows)
    • File explorer
    • Code reviews
    • Branches
    • Merge conflicts
    • Mergebots
    • Xlinks
    • Smart Locks
    • Symlink Support
    • Triggers
      • Types of trigger
      • List of available triggers
      • Detailed trigger reference
      • Input communication
      • Output communication
      • Common environment variables
      • server.conf variables
      • Client side variables
      • Filters
      • Web triggers
  • Tutorials
  • On-Prem
  • Gluon
  • CLI and shortcut references
  • Release Notes
  1. Unity Version Control (previously Plastic SCM)

Filters

Learn about filters for triggers in Unity Version Control.
阅读时间1 分钟
最后更新于 10 个月前

You can use filters to create triggers that only execute when specified fields match the repository, object, or path involved in the operation that triggers the execution.
The system checks every particular filter for each type of trigger.
If the trigger receives data from the standard input, then the filter applies to each line of this input before the trigger executes. At least one filter must match with a line in the standard input for the trigger to execute, but it's not mandatory that all lines in the standard input match with the specified filters.
注意
Each trigger type accepts different filter elements.

Filter by repository

You can filter by repository (
rep:
) in all types of triggers. For example:
--filter="rep:myrepo"
.

Filter syntax

Filters are a comma-separated list, and admit regular expressions. If you need to use a comma character inside a filter, remember to scape it:
\,
.
For example, you can filter by an exact name for a repository, object or path:
--filter="rep:code,BL101"
Filters also support wildcards:
  • --filter="STATUS,br*"
  • --filter="rep:test*"

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

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

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

  • 在本页上
    • Filter by repository

    • Filter syntax


报告此页面的问题