Question by
The-Flickinator · Nov 06, 2017 at 11:12 PM ·
script.user interfaceicon
Does anyone know why this script has a strange icon?
So i created this new script as seen in the picture and can't figure out why the script icon is different. Is it because I have a prefab of the same type or something?
Whats with the purple Squares?????
strange-icon-on-script.png
(37.2 kB)
Comment
Best Answer
Answer by dragonSlayer · Nov 07, 2017 at 12:18 PM
This icon is showing because your class name is identical to a predefined class used by the Unity engine.
Simply changing the class name to any other would change the icon to the default icon for a script file.
// Tile changed to MyTile
public class MyTile : MonoBehaviour {
// Don't change anything inside here
}