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