I’m working in Unity 3.5.7f6, and I created my own script called GameManager, a standard MonoBehaviour script, added it to a object, and I noticed that I got a cog wheel as a icon for the script (on the left far left side):
Normally you get, what looks like, a white paper with a corner tucked in:
But I didn’t think much about it since the script worked as it should and everything was fine while working in the editor.
But then I noticed, when I play my game as a standalone (*.exe), that the public values which I set through the inspector didn’t get stored, and the values always was set to the default values. No matter how I did. Same thing when using a custom editor script and using SerializedProperty variable.
So I created a new script, with the exact same code, but with a different name (GameplayManager), and that worked as it was intended, both in editor and as a standalone. This time I didn’t get the cog wheel, but the standard icon.
So my question is, what does this cog wheel mean, what does it do, and how can I remove/change the icon if I do get it? Maybe is the name (GameManager) somehow flagged in Unity to be something special. Does anyone have an idea?