Save
This commit is contained in:
@@ -13,6 +13,7 @@ using UnityEditor;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Events;
|
||||
using UnityEngine.SceneManagement;
|
||||
using UnityEngine.Scripting;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace UnityEditor
|
||||
@@ -2205,3 +2206,29 @@ namespace Convention
|
||||
}
|
||||
}
|
||||
|
||||
namespace Convention
|
||||
{
|
||||
public static partial class ConventionUtility
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Unity engine function to disable the GC
|
||||
/// </summary>
|
||||
public static void GC_disable()
|
||||
{
|
||||
#if !UNITY_EDITOR
|
||||
GarbageCollector.GCMode = GarbageCollector.Mode.Disabled;
|
||||
#endif
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unity engine function to enable the GC
|
||||
/// </summary>
|
||||
public static void GC_enable()
|
||||
{
|
||||
#if !UNITY_EDITOR
|
||||
GarbageCollector.GCMode = GarbageCollector.Mode.Enabled;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user