mirror of
https://github.com/GrahamKracker/UnityExplorer.git
synced 2025-07-04 20:42:22 +08:00
Cleanup and fix some small issues with scroll pool
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user