Cleanup and fix some small issues with scroll pool

This commit is contained in:
Sinai
2021-04-21 23:07:15 +10:00
parent 0a9639f8a9
commit edbb9a2882
12 changed files with 174 additions and 138 deletions

View File

@ -19,6 +19,8 @@ namespace UnityExplorer.UI.Widgets
public int _cellIndex;
public GameObject uiRoot;
public RectTransform Rect => m_rect;
private readonly RectTransform m_rect;
public Text nameLabel;
public Button nameButton;
@ -32,6 +34,7 @@ namespace UnityExplorer.UI.Widgets
{
this.tree = tree;
this.uiRoot = cellUI;
m_rect = uiRoot.GetComponent<RectTransform>();
this.nameButton = nameButton;
this.nameLabel = nameButton.GetComponentInChildren<Text>();
this.expandButton = expandButton;