| Parameter | Description |
|---|---|
| assetObject | The asset object to check. |
| statusOptions | How to query the version control system. These options affect the speed and accuracy of the query. The default value is StatusQueryOptions.UseCachedIfPossible. |
bool True if the version control system considers the .meta file open for editing. Otherwise, false.
Checks whether the .meta file of an asset object is open for editing in version control.
Some version control systems only let one user at a time edit certain types of file, to avoid conflicts. In that case, you must open the file for editing, also known as checking it out, before you can edit it. Use this method to check whether the .meta file of an asset is open for editing. To check the asset file, use AssetDatabase.IsOpenForEdit.
| Parameter | Description |
|---|---|
| assetObject | The asset object to check. |
| message | When the method returns, contains the reason why the asset isn't available for editing, if there is one. |
| statusOptions | How to query the version control system. These options affect the speed and accuracy of the query. The default value is StatusQueryOptions.UseCachedIfPossible. |
void True if the version control system considers the .meta file open for editing. Otherwise, false.
Checks whether the .meta file of an asset object is open for editing in version control and gets the reason if it isn't.
Some version control systems only let one user at a time edit certain types of file, to avoid conflicts. In that case, you must open the file for editing, also known as checking it out, before you can edit it. Use this method to check whether the .meta file of an asset is open for editing. To check the asset file, use AssetDatabase.IsOpenForEdit.