文档

Unity Engine

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.
阅读时间1 分钟最后更新于 12 小时前

Definition

public static bool forceAssetUnloadAndGCOnSceneLoad { get; set; }