Beispiel #1
0
        public static void SetIcon(this GameObject go, GameObjectLabelIcon icon)
        {
#if UNITY_EDITOR
            IconUtility.SetIcon(go, icon);
#endif
        }
Beispiel #2
0
        public static void SetIcon(this GameObject go, Texture2D texture)
        {
#if UNITY_EDITOR
            IconUtility.SetIcon(go, texture);
#endif
        }
Beispiel #3
0
        public static void SetIcon(this GameObject go, Sprite sprite)
        {
#if UNITY_EDITOR
            IconUtility.SetIcon(go, sprite);
#endif
        }
Beispiel #4
0
        public static void ClearIcon(this GameObject go)
        {
#if UNITY_EDITOR
            IconUtility.SetIcon(go, (Texture2D)null);
#endif
        }