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

◆ CanMakeEditable() [1/5]

static Boolean CanMakeEditable ( [NotNull] Object asset,
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
assetInstance of an asset.
optionsStatusQueryOptions
Returns
True if the path can be opened for editing, false otherwise.
See also

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

67 {
68 ThrowIf.ArgumentIsNull(asset, nameof(asset));
69
70 return CanMakeEditable(Path.Get(asset), options);
71 }
static Boolean CanMakeEditable([NotNull] Path path, StatusQueryOptions options=DefaultStatusQueryOption)
Returns true if the asset can be opened for editing in the version control system.

References Asset.VersionControl.CanMakeEditable(), and Asset.Path.Get().

+ Here is the call graph for this function: