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(); }
/// <summary> /// Get category of this primitive /// </summary> /// <returns></returns> public ArtCategory GetArtCategory() { return(ArtGroups.GetGroup(artGroupTag).GetCategory(artCategoryTag)); }
/// <summary> /// Get group of this primitive /// </summary> /// <returns></returns> public ArtGroup GetArtGroup() { return(ArtGroups.GetGroup(artGroupTag)); }