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

◆ SaveAsNew()

Asset SaveAsNew ( Path path)

Saves a copy of the asset to a new path. Generates a unique file/folder name if path already exists.

Will automatically create missing folders.

Parameters
pathThe path where to save the copy. Note that actual path of the asset may change.
Returns
The copy of the Asset or null if copying failed. Use CodeSmileEditor.Asset.GetLastErrorMessage to get the human readable error message.
See also

Definition at line 277 of file Asset.cs.

278 {
279 ThrowIf.ArgumentIsNull(path, nameof(path));
280
281 return SaveAs(path.UniqueFilePath);
282 }

References SaveAs(), and SaveAsNew().

Referenced by SaveAsNew().

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