using UnityEngine; using UnityEngine.UI; public class TabGroup : MonoBehaviour { public Button[] buttons; public GameObject[] contents; public int selectedIndex = 0; void OnValidate(){ if(buttons == null || buttons.Length == 0){ buttons=GetComponentsInChildren