-
Notifications
You must be signed in to change notification settings - Fork 98
Renaming Scripts
Brian Intile edited this page Jan 24, 2019
·
1 revision
This is just a quick guide on how to rename scripts in your project without things getting messy. Mostly for when you forget to append the microgame ID to the script names.
- First of all don't do anything in a folder explorer, unless you want to rename the .meta files too.
- For non-script assets or folders in Unity, pressing F2 in the Unity Project View and renaming it is sufficient and Unity handles it.
- For scripts, go into Visual Studio, move over the name "Public Class [Name]" and press F2 to rename that in Visual Studio, which will automatically change all the calls to it. Do this for every script that needs changing.
- THEN rename the scripts themselves to the same thing in Unity Project View with F2. Unity might have to think about it for a minute but it should pick up fine and nothing but the script files themselves will be edited and need re-committing.