Remove temp gameobject creation, scene explorer is working fine

This commit is contained in:
Sinai 2021-04-15 20:28:27 +10:00
parent 5bb612cb5a
commit 51f5c68598

View File

@ -39,20 +39,6 @@ namespace UnityExplorer.UI.Widgets
{
yield return null;
// stress test
//for (int i = 0; i < 10000; i++)
// new GameObject(i.ToString());
var root = new GameObject().transform;
for (int i = 0; i < 100; i++)
{
var obj = new GameObject(i.ToString());
obj.transform.parent = root;
for (int j = 0; j < 100; j++)
new GameObject(j.ToString()).transform.parent = obj.transform;
}
RefreshData();
infiniteScroll.DataSource = this;
infiniteScroll.Initialize(this);