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