AssetDatabase.IsMetaFileOpenForEdit

Switch to Manual
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);

Parameters

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

Returns

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

Description

查询资源的元数据 (.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