protected void OnEnable() { grid = target as QuickGrid; grid.needItemEvent = true; grid.needItemPanelMask = false; mask = grid.GetComponent <Image>(); //sv = GetAndAdd<ScrollRect>(grid); content = FindComponentInChildren <QuickGridContent>(grid.transform); //grid.GetComponentInChildren<QuickGridContent>(); if (!content) { content = CreateContent(grid.gameObject); } tsfWidget = content.transform; item = FindComponentInChildren <QuickGridItemBase>(tsfWidget);// content.GetComponentInChildren<QuickGirdItemConfig>(); if (!item) { item = CreateItem(content.gameObject); } }