超级爆改
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user