- Home /
Question by
$$anonymous$$ · Jun 07, 2015 at 08:20 PM ·
textimageextensionrenameprogrammatically
How do I change a file extension programmatically?
I have a file in my Resources folder named "image.pcx".
I want to change the file name to "image.txt" so that I can load it.
How can I change the file name?
I was unsuccessful with:
AssetDatabase.RenameAsset("Assets/Resources/image.pcx", "image.txt");
As it renamed it to "image.txt.pcx".
Comment
Your answer
Follow this Question
Related Questions
Write text in image from the app ? 1 Answer
how convert text to image ? 2 Answers
Canvas Text renders under Image 1 Answer
Text to image 2 Answers
UI behavior on resolution change 1 Answer