기술 자료

​
​

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
    • Configure the client
      • Client configuration files
      • Use filter pattern files
      • Use value matching pattern files
      • Globally configure the branch explorer
      • Configure EOL conversion
      • Configure external tools
      • Configure syntax language
      • Configure the Open with menu
    • Version Control workflow
    • Version Control tools
  • On-Prem
  • Gluon
  • CLI and shortcut references
  • Release Notes
  1. Unity Version Control (previously Plastic SCM)

Use filter pattern files

Find how to use filter pattern rules in configuration files.
읽는 시간 4분
최근 업데이트: 10달 전

Use filter pattern rules to set up specific client configuration files.
Pattern files are plain text files that contain one rule per line to match files according to their paths. Unity Version Control (UVCS) checks the path of each item to check if it’s affected by the set of rules. To comment lines, place the
#
character at the beginning of any line.
참고
If you filter a directory, you filter the complete sub tree. This means that if you filter
/src/lib
, for example, you also filter
/src/lib/core.h
and
/src/lib/module/main.c
.

Filter pattern files in UVCS

The following filter pattern files apply to the workspace or pending changes to specify how Unity Version Control (UVCS) filters items:
  • Ignored files (
    ignore.conf
    )
  • Cloaked files (
    cloaked.conf
    )
  • Hidden changes (
    hidden_changes.conf
    )
  • Writable and read-only files (
    writable.conf
    and
    readonly.conf
    )
    • These two files apply to the same action (set the item as read-only).
    • writable.conf
      takes precedence over
      readonly.conf
      .

Rule types

UVCS has multiple types of rules that you can use in configuration files.
For more information on which rule types take precedence when you use multiple, refer to pattern hierarchy.

Absolute path rules

Absolute path rules allow you to match a single file or directory.
# The following rule matches the complete workspace tre:/# The following rule matches:# * /src/main/test# * /src/main/test/com/package/BasicTests.java/src/main/test# The following rule only matches:# * /src/lib/server/Main.java# But the rule doesn’t match these files:# * /Main.java# * /src/lib/client/Main.java/src/lib/server/Main.java

Rules with wildcards

Use wildcards to customize absolute path rules:
  • *
    matches any number of consecutive characters except the directory separator
    /
    .
  • **
    matches any number of consecutive characters, including the directory separator
    /
    .
  • ?
    matches a single character, excluding the directory separator
    /
    .
# The following matches:# * /src/lib-3/main.c# * /src/samples/number-3/main.c/src/**-3/main.c# The following matches:# * /doc/public/toc.tex# * /doc/public/chapter-1.tex/doc/public/*.tex# The following matches:# * /src/lib/code.c# * /src/lib/coda.c/src/lib/cod?.c

Catch all rules

Catch all rules are a subset of the wildcard rules. These rules are equivalent and match the complete workspace tree:
  • /
  • *
  • /*
  • */
  • **
  • /**
  • **/

Item name rules

Match files or directories according to their names:
# The following matches:# * /src/lib# * /src/lib/client/main.c# * /src/lib/test# * /references/lib# * /references/lib/libgit2.solib# The following matches:# * /src/lib/references.c# * /references.c# * /doc/main/references.creferences.c

Extension rules

Match files according to the file extension:
# The following matches:# * /src/main/java/com/samplepackage/Main.java# * /examples/ReferenceList.java*.java# The following matches:# * /bin/client/resources/core.en.resx# * /out/bin/server/resources/networking.en.resx^*.en.resx$

Regular expression patterns

Use regular expressions to match files. Ensure that the pattern starts with the
^
character and ends with the
$
character:
# The following match:# * /src/doc/sample-3528.txt# * /sample-1.txt^.*\/sample-[0-9]+.txt$# The following match:# * /bin/dir-0xC0FFEE/main.c# * /publish/bin/dir-0xDADA_/backend.cpp^.*\/dir-0x[A-F0-9]+_?\/[^\/]+$

Exclusion rules

To use a rule to exclude an item from the filter, use the same rules but start the pattern with the
!
character. For example, the following rules match the entire directory, but exclude the specified paths:
/!/src/lib!/main/bin/compiler.exe!*.h!references!resources.*
참고
Exclusion rules take precedence over regular (inclusion) rules.

Pattern hierarchy

UVCS uses the patterns in a file to match the path of an item. Some pattern formats take precedence over others. The following shows the hierarchy of pattern formats:
  1. Absolute path rules that match exactly
  2. Catch-all rules
  3. Name rules applied to the current item
  4. Absolute path rules applied to the item directory structure
  5. Name rules applied to the item directory structure
  6. Extension rules
  7. Wildcard and Regular expression rules

Exclusion rules order

Exclusion rules take precedence over other rules, so UVCS matches those first. There are two exceptions to this rule:
  • Absolute path rules that match exactly
  • Absolute path rules applied to the item directory structure

Absolute path rules that match exactly

UVCS applies absolute path rules that match exactly before exclusion rules. For example, if you use the following rules, UVCS filters the item
/src/test/testdata.zip
even though the exclusion rule prevents the entire directory from being filtered:
!//src/test/testdata.zip

Absolute path rules applied to the item directory structure

UVCS applies absolute path rules applied to the item directory structure before exclusion rules. In this case, the most precise rule takes precedence.
For example, you can use the following rules:
/src!/src/client/src/client/bin
In this example, UVCS filters files such as
/src/build.sh
or
/src/client/bin/output.so
, but not a
/src/client/socket.c
file.

Copyright © 2026 Unity Technologies
법률 정보개인정보 처리방침쿠키Documentation Terms of Use개인 정보 판매 또는 공유 금지개인정보 보호 선택(쿠키 설정)

'Unity', Unity 로고 및 기타 Unity 상표는 미국 및 기타 지역 내 Unity Technologies 또는 그 계열사의 상표 또는 등록상표입니다(자세한 내용은 여기에서 확인하세요). 기타 명칭 또는 브랜드는 해당 소유자의 상표입니다.

일부 페이지는 편의를 위해 기계 번역되었으며 부정확한 내용이 있을 수 있습니다. 정보가 상충되는 경우, 영어 버전을 우선으로 참조하세요.

  • 보고 있는 페이지
    • Filter pattern files in UVCS

    • Rule types

      • Absolute path rules

    • Rules with wildcards

    • Catch all rules

      • Item name rules

    • Extension rules

    • Regular expression patterns

    • Exclusion rules

    • Pattern hierarchy

      • Exclusion rules order

        • Absolute path rules that match exactly

        • Absolute path rules applied to the item directory structure


이 페이지의 문제 보고