Skip to content

Instantly share code, notes, and snippets.

@solsnare
solsnare / ComponentGroup.cs
Created December 24, 2023 23:16
ComponentGrouping for Unity to help with messy inspectors. Odin version to really fix the UX.
using UnityEngine;
using Sirenix.OdinInspector;
public class ComponentGroup : MonoBehaviour
{
// Start is called before the first frame update
public string Name = "GROUP NAME";
[InlineEditor,OnInspectorInit("OnValidate")]
public Component[] _componentsInGroup = null;
@solsnare
solsnare / ComponentGroup.cs
Created December 24, 2023 03:55
Simple Component Grouping tool for Unity. Helps organize your inspector!
//Made by Soltar @sullysaysyes on twitter
using UnityEngine;
public class ComponentGroup : MonoBehaviour
{
// Start is called before the first frame update
public string Name = "GROUP NAME";
public Component[] _componentsInGroup = null;
public bool _showGroup = false;