CodeSmile AssetDatabase 1.9
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 349 of file Asset.cs.

350 {
351 if (File.Move(m_AssetPath, destinationPath))
352 {
353 SetAssetPathFromObject();
354 return true;
355 }
356
357 return false;
358 }

References Asset.File.Move().

+ Here is the call graph for this function: