Version: 2017.1
public static VersionControl.Task Lock (VersionControl.AssetList assets, bool locked);
public static VersionControl.Task Lock (VersionControl.Asset asset, bool locked);

Parameters

assets List of assets to lock/unlock.
locked True to lock assets, false to unlock assets.
asset Asset to lock/unlock.

Description

Attempt to lock an asset for exclusive editing.

Depening on version control system and server setup this might be an exclusive lock preventing other people from even modifing the asset or or it might simple prevent other people from submitting the asset to the version control server.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961