#if UNITY_EDITOR using UnityEditor; using UnityEngine; using ERAGANX.HierarchyOrganizerPro.Core; public static class ProjectHierarchyStyle { [MenuItem("Tools/Project/Style Selected Group")] private static void ApplyGroup() { var targets = Selection.gameObjects; var style = new HierarchyStyle { role = StyleRole.Title, kind = RowKind.Section, bold = true, backgroundEnabled = true, background = new Color(0.27f, 0.48f, 0.77f), opacity = 1f, directCount = true, childColorScope = ChildColorScope.Descendants, childBackground = new Color(0.27f, 0.48f, 0.77f), childOpacity = 0.18f }; StyleCommands.ApplyTemplate(targets, style, "Style selected project groups"); } [MenuItem("Tools/Project/Reset Selected Row Styles")] private static void ResetRows() { StyleCommands.Apply(Selection.gameObjects, null, ApplyScope.Selection, "Reset selected styles"); } } #endif