Search Unity

  1. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  4. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

GameManager.cs Icon ?

Discussion in 'General Discussion' started by BlackMantis, Jul 9, 2018.

  1. BlackMantis

    BlackMantis

    Joined:
    Feb 7, 2010
    Posts:
    1,473
    First time in a long time I named an script GameManager, and to my surprise Unity gave it a gear icon.
    Icon.png
    Mind = Blown, lol
    Super cool, what others are there if any ?
     
  2. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    12,140
    I don't know about default icons but you can manually assign icons to scripts using one of two methods.

    For the first method you simply create a root folder named "Gizmos" and add an image (PNG file format) with the name of the script followed by a space and the word "Icon". Unity will automatically assign that image to that script as an icon and it will show up in the Project View and the Inspector.

    Gizmo.png

    For the second method you simply click on the script and then click on the icon at the top of the Inspector and you will be given a small menu with a number of colors available. Simply click "Other" and it will open up a window showing all of the Texture2D assets in your project. Click the one you want and it will be assigned to it.

    ScriptExample.png

    Furthermore the second method can be done to GameObjects in your scene. Once you've assigned an icon to a GameObject and deselect it it will show as the gizmo in the Scene View.

    SceneExample.png
     
    Last edited: Jul 9, 2018
  3. BlackMantis

    BlackMantis

    Joined:
    Feb 7, 2010
    Posts:
    1,473
    Since GameManager was a key word that triggered the icon, are there any special features belonging to it ? ( eg ) In the same way that key name folders like Materials, or Resources.
     
  4. Peter77

    Peter77

    Joined:
    Jun 12, 2013
    Posts:
    2,507
  5. diegomendes

    diegomendes

    Joined:
    Sep 20, 2014
    Posts:
    29
    It's not fixed, is happening on 2018.1 o_O.