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

◆ Move()

static Boolean Move ( [NotNull] Path sourcePath,
[NotNull] Path destinationPath )
static

Moves an asset file to destination path.

Any missing folders in destinationPath will be created automatically.

Parameters
sourcePathThe path to an asset file.
destinationPathThe path to move the file to. May have a different extension.
Returns
True if moving the asset will be successful, false if move failed. Use CodeSmileEditor.Asset.GetLastErrorMessage to get the failure message.
See also

Definition at line 649 of file Asset.File.cs.

650 {
651 if (sourcePath == null || destinationPath == null)
652 return false;
653
654 destinationPath.CreateFolders();
655 return Succeeded(AssetDatabase.MoveAsset(sourcePath, destinationPath));
656 }

Referenced by Asset.Move().

+ Here is the caller graph for this function: