Esempio n. 1
0
        void OnEnable()
        {
            EditorApplication.hierarchyChanged -= CountObjects;
            EditorApplication.hierarchyChanged += CountObjects;
            if (ButtonStyle == null)
            {
                ButtonStyle         = new GUIStyle();
                ButtonStyle.padding = new RectOffset(1, 1, 1, 1);
            }
            if (ArrowDownIcon == null)
            {
                ArrowDownIcon = Resources.Load <Texture>("Icons/arrowDownBlack");
            }
            if (VisibleIcon == null)
            {
                VisibleIcon = Resources.Load <Texture>("Icons/visible");
            }
            if (InvisibleIcon == null)
            {
                InvisibleIcon = Resources.Load <Texture>("Icons/invisible");
            }

            ArtGroups.Initialize();

            CreateGroupView(ArtGroups.Globals, "Icons/envBall");
            CreateGroupView(ArtGroups.Gameplay, "Icons/pacman");
            CreateGroupView(ArtGroups.Camera, "Icons/camera");
            CreateGroupView(ArtGroups.Sounds, "Icons/sound");
            CreateGroupView(ArtGroups.Rendering, "Icons/rendering");
            CreateGroupView(ArtGroups.Particles, "Icons/particle");
            CountObjects();
        }
Esempio n. 2
0
 /// <summary>
 ///     Get category of this primitive
 /// </summary>
 /// <returns></returns>
 public ArtCategory GetArtCategory()
 {
     return(ArtGroups.GetGroup(artGroupTag).GetCategory(artCategoryTag));
 }
Esempio n. 3
0
 /// <summary>
 ///     Get group of this primitive
 /// </summary>
 /// <returns></returns>
 public ArtGroup GetArtGroup()
 {
     return(ArtGroups.GetGroup(artGroupTag));
 }