기술 자료

​
​

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)

Client side variables

Understand client variables used in Unity Version Control triggers.
읽는 시간 2분
최근 업데이트: 10달 전

You can use relative or user-defined paths to customize client-side triggers. You can build the script execution paths in the following ways:
  • Use customized trigger variables defined in the
    client.conf
    file.
  • Use predefined variables.
These approaches allow you to define client-side triggers across platforms.

client.conf
variables

You can define custom variables in the
client.conf
file in your home directory. To use the custom variable when you create a client-side trigger, you need to add a new section with the
TriggerVariables
in the
client.conf
file. The example below defines a variable called
TRIGGERS_PATH
with the
c:\triggers
value:
<?xml version="1.0"?><ClientConfigData> <Language>en</Language> <WorkingMode>UPWorkingMode</WorkingMode> <TriggerVariables> <TriggerVariable name="TRIGGERS_PATH" value="c:\triggers" /> </TriggerVariables></ClientConfigData>
You can use this variable to assign a path when you create a client-side trigger. You can give the path a name that you can use later with your triggers. Refer to the following example:
cm trigger create before-clientcheckin "client code checker" "@TRIGGERS_PATH\addformat.bat"

UVCS predefined variables

There are several predefined values that you can use to compose the script field value when you create a client-side trigger:

Variable

Description

PLASTIC_BIN_PATH
This variable matches the UVCS client installation directory.
WKSPACE_PATH
This variable is the current workspace path when you create the client trigger.
GLOBAL_CONFIG_PATH
This variable points to the global configuration directory of the server you use.

Example trigger

Create a trigger that executes a script in the global configuration directory of the server you're using:
cm trigger create after-update "Delete files after update" "@GLOBAL_CONFIG_PATH/allrepos/triggers/deletefiles.bat"
참고
You can use either the
\
or the
/
separator with these variables in Windows and Linux. For example, if you enter
"@PLASTIC_BIN_PATH/triggers/checkdirectories.pl"
in a Windows platform, the client-side trigger can identify the separator and interpret it as:
"@PLASTIC_BIN_PATH\triggers\checkdirectories.pl"
.
Use @ to refer to these variables.

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

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

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

  • 보고 있는 페이지
    • client.conf variables

    • UVCS predefined variables

      • Example trigger


이 페이지의 문제 보고