attempt at auto-increasing pool size, not quite working properly

This commit is contained in:
Sinai
2021-04-21 21:04:26 +10:00
parent b32675e3b1
commit 0a9639f8a9
8 changed files with 157 additions and 101 deletions
@@ -103,7 +103,7 @@ namespace UnityExplorer.UI.Widgets
ExplorerCore.LogWarning("The object was destroyed!");
}
public static GameObject CreatePrototypeCell(GameObject parent)
public static RectTransform CreatePrototypeCell(GameObject parent)
{
var prototype = UIFactory.CreateHorizontalGroup(parent, "PrototypeCell", true, true, true, true, 2, default,
new Color(0.15f, 0.15f, 0.15f), TextAnchor.MiddleCenter);
@@ -136,7 +136,7 @@ namespace UnityExplorer.UI.Widgets
prototype.SetActive(false);
return prototype;
return rect;
}
}
}