Search Unity

  1. Get all the Unite Berlin 2018 news on the blog.
    Dismiss Notice
  2. Unity 2018.2 has arrived! Read about it here.
    Dismiss Notice
  3. Improve your Unity skills with a certified instructor in a private, interactive classroom. Learn more.
    Dismiss Notice
  4. ARCore is out of developer preview! Read about it here.
    Dismiss Notice
  5. Magic Leap’s Lumin SDK Technical Preview for Unity lets you get started creating content for Magic Leap One™. Find more information on our blog!
    Dismiss Notice
  6. 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:
    11,676
    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,374
  5. diegomendes

    diegomendes

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