using TriInspector; using TriInspector.Elements; using TriInspector.GroupDrawers; [assembly: RegisterTriGroupDrawer(typeof(TriFoldoutGroupDrawer))] namespace TriInspector.GroupDrawers { public class TriFoldoutGroupDrawer : TriGroupDrawer { public override TriPropertyCollectionBaseElement CreateElement(DeclareFoldoutGroupAttribute attribute) { return new TriBoxGroupElement(new TriBoxGroupElement.Props { title = attribute.Title, titleMode = TriBoxGroupElement.TitleMode.Foldout, expandedByDefault = attribute.Expanded, hideIfChildrenInvisible = true, }); } } }