ScriptReference/AssetDatabase.RenameAsset #126
Replies: 2 comments
-
|
Comment by RobD6: Note that the 2nd parameter needs to not include the path. AssetDatabase.Rename("Assets/Textures/OldName.png", "NewName.png");NOT: AssetDatabase.Rename("Assets/Textures/OldName.png", "Assets/Textures/NewName.png"); |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Comment by The extension of the original asset name will automatically be added to the new name if it is missing or if the specified extension of the new name is different. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
ScriptReference/AssetDatabase.RenameAsset
https://docs.unity3d.com/ScriptReference/AssetDatabase.RenameAsset.html
Beta Was this translation helpful? Give feedback.
All reactions