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

◆ Rename()

static Boolean Rename ( [NotNull] Path path,
String newFileName )
static

Renames an asset's file or folder name.

Cannot be used to change a file's extension. Use CodeSmileEditor.Asset.File.Move to change the extension.

Parameters
pathPath to an asset file.
newFileNameThe new file name without extension.
Returns
True if the rename succeeded, false otherwise. On failure use CodeSmileEditor.Asset.GetLastErrorMessage to get the failure reason.
See also

Referenced by Asset.Rename().

+ Here is the caller graph for this function: