Version: 2020.3
public static bool isIncremental ;

描述

报告是否启用了增量垃圾收集。

如果增量垃圾收集在项目 PlayerSettings 中已启用并且在当前运行的平台上受支持,则 IsIncremental 为 true。否则值为 false。

使用 incrementalTimeSliceNanoseconds 设置增量收集步骤的目标长度。可使用 CollectIncremental 手动触发增量垃圾收集步骤。

另请参阅:PlayerSettings.gcIncremental