File name change bugs #890
-
Hi! I know I'm not the first person to post about this (I've read through the Discord), but I'm the first to do it here on the forum. I was running into the "Couldn't resolve type" error when renaming objects after I had changed the name of one of my components from HealthBarRenderer to MeterRenderer. Then, one time, it stopped giving me errors. "Great!", I thought. Later, however, I realized that the editor hadn't actually fixed the problem, it still displays as HealthBarRenderer in the editor, it just updated its pointer or something so now it accesses the MeterRenderer.cs file. I looked around in the file structure and found the EditorUserData file and edited the nodes that had HealthBarRenderer in them to be correct; however the editor still displays HealthBarRenderer. Is something broken with the binding between my visual studio project and the editor? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I hate this so much. Apparently I had renamed the file, but not the class name inside the file, and that did not throw an error like I'm used to. Ran into a bunch of the previously mentioned invalid type exceptions, but at least I know how to fix those. Maybe there should be an option to rename components inside the editor? |
Beta Was this translation helpful? Give feedback.
I hate this so much.
Apparently I had renamed the file, but not the class name inside the file, and that did not throw an error like I'm used to. Ran into a bunch of the previously mentioned invalid type exceptions, but at least I know how to fix those. Maybe there should be an option to rename components inside the editor?