- Home /
Best way to rename scripts
I'm on the process of refactoring a lot of classes (c# btw) and sometimes i need to rename several classes to better describe what they do. Renaming manually seems not to be the way as I need to open the script and edit as well. I can write an editor script to do a simple Find & Replace but still then, reference with tweaked values from instances of this class attached to various GameObjects (or reference from other classes to this class) won't be saved.
So, are there a way to do that in Unity3D (rename a script) ? Please help !
Answer by Piflik · Jan 03, 2013 at 02:13 PM
MonoDevelop has a Replace In Files option that you can use. Don't use MonoDevelop much (mainly use UniSciTE since it opens faster), so I don't know how useful this is or if there is a better option.