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

◆ Move()

Boolean Move ( Path destinationPath)

Moves asset to destination path.

Missing folders in destination path will be created automatically. After the move, the CodeSmileEditor.Asset.AssetPath property is updated accordingly. On failure, use CodeSmileEditor.Asset.GetLastErrorMessage to get the failure error message.

Parameters
destinationPathThe path where to move the asset to. May have a different extension.
Returns
True if moving the asset will be successful, false otherwise.
See also

Definition at line 353 of file Asset.cs.

354 {
355 if (File.Move(m_AssetPath, destinationPath))
356 {
357 SetAssetPathFromObject();
358 return true;
359 }
360
361 return false;
362 }

References Asset.File.Move(), and Move().

Referenced by Move().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: