siyao 3 年前
当前提交
884aacd0
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 8
      com.unity.uiwidgets/Runtime/engine/UIWidgetsPanel.cs

8
com.unity.uiwidgets/Runtime/engine/UIWidgetsPanel.cs


TryEnableOnDemandGC();
#endif
Application.lowMemory += () => {
GarbageCollector.GCMode = GarbageCollector.Mode.Enabled;
#if !UNITY_EDITOR
TryDisableOnDemandGC();
#endif
GarbageCollector.GCMode = GarbageCollector.Mode.Disabled;
#if !UNITY_EDITOR
TryEnableOnDemandGC();
#endif
};

正在加载...
取消
保存