void OnValidate() { if (LayerTabRect != null) { LayerTabFitter = LayerTabRect.GetComponent <RectContentFitter>(); } if (DeleteIconHidable != null) { DeleteIconRect = DeleteIconHidable.GetComponent <RectTransform>(); } }