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);

Parámetros

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

Valor de retorno

bool True is the asset can be edited.

Descripción

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

Used to disable editor controls.