mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2025-01-07 10:03:38 +08:00
Remove temp gameobject creation, scene explorer is working fine
This commit is contained in:
parent
5bb612cb5a
commit
51f5c68598
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user