Version: 2017.3
public static bool IsOpenForEdit (Object assetObject, StatusQueryOptions StatusQueryOptions);
public static bool IsOpenForEdit (string assetOrMetaFilePath, StatusQueryOptions StatusQueryOptions);
public static bool IsOpenForEdit (Object assetObject, out string message, StatusQueryOptions statusOptions);
public static bool IsOpenForEdit (string assetOrMetaFilePath, out string message, StatusQueryOptions statusOptions);
Obsolete public static bool IsOpenForEdit (Object assetObject);
Obsolete public static bool IsOpenForEdit (string assetOrMetaFilePath);
Obsolete public static bool IsOpenForEdit (Object assetObject, out string message);
Obsolete public static bool IsOpenForEdit (string assetOrMetaFilePath, out string message);

パラメーター

assetObject Object representing the asset whose status you wish to query.
assetOrMetaFilePath Path to the asset file or its .meta file on disk, relative to project folder.
message Returns a reason for the asset not being open for edit.
StatusQueryOptions Options for how the version control system should be queried. These options can effect the speed and accuracy of the query.

戻り値

bool True if the asset is considered open for edit by the selected version control system.

説明

バージョン管理で、アセットファイルが編集のために開いているかを照会します。

Your version control system may be configured to only allow a single user at a time to edit certain types of file, to avoid conflicts that arise when multiple users edit a file at the same time.
In this case a user must 'open' that file for editing (also known as 'checking out') to ensure that they have permission to edit the file.
Use this function to query the 'open for edit' status of a file in a version control system that supports it.
See Also: AssetDatabase.IsMetaFileOpenForEdit
See Also: StatusQueryOptions

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