I have a Scene Postprocessor where I set gameObject.name = "" for every static GameObject, because the game isn’t doing anything with them. I did this to reduce (string) memory usage.
I noticed starting with Unity 2021.1, the editor outputs a warning when it detects a GameObject with an empty name.
This is not a complaint, I would just like to learn what made you to no longer allow empty names?
A workaround you can use to achieve a similar memory saving effect would be to create a constant string that you could set to when not in use. The references could then be freed saving the memory.
class Example
{
public static readonly string Unused = "u";
}