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;