Version: 5.4
public static bool IsOpenForEdit (Object assetObject);
public static bool IsOpenForEdit (string assetOrMetaFilePath);
public static bool IsOpenForEdit (Object assetObject, out string message);
public static bool IsOpenForEdit (string assetOrMetaFilePath, out string message);

파라미터

assetPath Is the path to the asset on disk relative to project folder.
message Used to give reason for not open.

반환

bool True is the asset can be edited.

설명

Use IsOpenForEdit to determine if the asset is open for edit by the version control.

Used to disable editor controls.