Search Unity

  1. Unity 2019.1 beta is now available.
    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. We're looking for insight from anyone who has experience with game testing to help us better Unity. Take our survey here. If chosen to participate you'll be entered into a sweepstake to win an Amazon gift card.
    Dismiss Notice
  4. On February 28th the Feedback website will shut down and be redirected to the Unity forums. See the full post for more information.
    Dismiss Notice
  5. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  6. Unity 2018.3 is now released.
    Dismiss Notice
  7. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

GameManager.cs Icon ?

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

  1. BlackMantis

    BlackMantis

    Joined:
    Feb 7, 2010
    Posts:
    1,474
    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:
    13,069
    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
    Dj0z, eses, Kemonono and 2 others like this.
  3. BlackMantis

    BlackMantis

    Joined:
    Feb 7, 2010
    Posts:
    1,474
    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:
    3,142
    Kiwasi likes this.
  5. diegomendes

    diegomendes

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

    pabitrapadhy

    Joined:
    Feb 4, 2017
    Posts:
    5
    If you could relate then, it's sort of like keywords in programming language.
    They are reserved, if you want to create something with exact name, using namespace will help you in that case.
    It's not a bug, scripts with those names are present in Unity, so the icon assignment module, assigns icon to anything with the same name.

    USE NAMESPACE, clear all your confusions.