Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


forceAssetUnloadAndGCOnSceneLoad

Forces a managed heap garbage collection and unloads unused assets after loading a scene in single mode in the Editor or exiting Prefab Mode. Disabling this can improve performance if you do not rely on managed class finalizers being called at that time.
Read time 1 minuteLast updated 13 days ago

Definition

  • Type: Property
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public static bool forceAssetUnloadAndGCOnSceneLoad { get; set; }