com.wallstop-studios.unity-helpers 2.0.0-rc81 → 2.0.0-rc81.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -37,6 +37,7 @@ namespace WallstopStudios.UnityHelpers.Core.Extension
37
37
  private static void InitializeMainThread()
38
38
  {
39
39
  UnityMainThread = Thread.CurrentThread;
40
+ Disabled.Clear();
40
41
  }
41
42
 
42
43
  public static void GlobalEnableLogging(this Object component)
@@ -37,6 +37,12 @@ namespace WallstopStudios.UnityHelpers.Utils
37
37
  [SerializeField]
38
38
  private GameObject[] _developmentOnlyPrefabs = Array.Empty<GameObject>();
39
39
 
40
+ [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)]
41
+ private static void ClearSpawnedPrefabs()
42
+ {
43
+ SpawnedPrefabs.Clear();
44
+ }
45
+
40
46
  private void Awake()
41
47
  {
42
48
  if (_spawnMethod.HasFlagNoAlloc(ChildSpawnMethod.Awake))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "com.wallstop-studios.unity-helpers",
3
- "version": "2.0.0-rc81",
3
+ "version": "2.0.0-rc81.1",
4
4
  "displayName": "Unity Helpers",
5
5
  "description": "Various Unity Helper Library",
6
6
  "dependencies": {},
@@ -36,4 +36,3 @@
36
36
  "test": "echo \"Error: no test specified\" && exit 1"
37
37
  }
38
38
  }
39
-