AssetDatabase.IsMetaFileOpenForEdit

切换到手册
public static bool IsMetaFileOpenForEdit (Object assetObject, StatusQueryOptions statusOptions);
public static bool IsMetaFileOpenForEdit (Object assetObject, out string message, StatusQueryOptions statusOptions);
Obsolete public static bool IsMetaFileOpenForEdit (Object assetObject);
Obsolete public static bool IsMetaFileOpenForEdit (Object assetObject, out string message);

参数

assetObject一个代表要查询其元数据状态的资源的对象。
message返回资源元数据未打开以供编辑的原因。
StatusQueryOptions用于应如何查询版本控制系统的选项。这些选项会影响查询的速度以及准确性。

返回

bool 如果选定的版本控制系统认为资源的元数据已打开以供编辑,则为 true。

描述

查询资源的元数据 (.meta) 文件是否在版本控制中打开以供编辑。

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.IsOpenForEdit
See Also: StatusQueryOptions

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