CodeSmile AssetDatabase 1.9
Unity's AssetDatabase in enjoyable, consistent, concise, convenient, comprehensible, safe, documented form.
Loading...
Searching...
No Matches

◆ CanMakeEditable() [3/5]

static Boolean CanMakeEditable ( [NotNull] Path path,
StatusQueryOptions options = DefaultStatusQueryOption )
static

Returns true if the asset can be opened for editing in the version control system.

If this method returns false, CodeSmileEditor.Asset.GetLastErrorMessage() returns the error message.

Parameters
pathPath to an asset.
optionsStatusQueryOptions
Returns
True if the path can be opened for editing, false otherwise.
See also

Definition at line 39 of file Asset.VersionControl.cs.

40 {
41 var canOpen = AssetDatabase.CanOpenForEdit(path, out var message, options);
42 if (canOpen == false)
43 SetLastErrorMessage(message);
44
45 return canOpen;
46 }

Referenced by Asset.VersionControl.CanMakeEditable().

+ Here is the caller graph for this function: