超级爆改

This commit is contained in:
SoulliesOfficial
2026-03-22 12:05:32 -04:00
parent f28bc68518
commit 731726239a
1959 changed files with 8890135 additions and 2222 deletions

View File

@@ -17,7 +17,11 @@ namespace Ichni.Editor
{
this.parentContainer = parentContainer;
this.gridLayoutGroup.cellSize = new Vector2(600f / elementCountPerRow, height);
this.dynamicUIElements = new List<DynamicUIElement>();
// 支持对象池复用:避免每次 new List 产生 GC直接清空
if (this.dynamicUIElements == null)
this.dynamicUIElements = new List<DynamicUIElement>();
else
this.dynamicUIElements.Clear();
}
public DynamicUISubcontainer Mark(string mark, IHaveInspection inspection = null)