public void UpdateStateSize() { if (EditorApplication.timeSinceStartup > this.stateSizeLastUpdateTime + 15d) { this.stateSizeLastUpdateTime = EditorApplication.timeSinceStartup; System.Threading.ThreadPool.QueueUserWorkItem((_) => { try { this.stateSize = UnityObjectUtils.GetObjectSize(this.world.GetState()); } catch (System.Exception ex) { Debug.LogException(ex); } }); } }