Version: 2022.3
言語: 日本語

GarbageCollector

class in UnityEngine.Scripting

マニュアルに切り替える

説明

API to control the garbage collector on the Mono and IL2CPP scripting backends.

See GarbageCollector.GCMode for how to change the global garbage collector operation mode.

Static 変数

GCModeSet and get global garbage collector operation mode.
incrementalTimeSliceNanosecondsThe target duration of a collection step when performing incremental garbage collection.
isIncrementalReports whether incremental garbage collection is enabled.

Static 関数

CollectIncrementalPerform incremental garbage collection for the duration specified by the nanoseconds parameter.

Events

GCModeChangedSubscribe to this event to get notified when GarbageCollector.GCMode changes.