unity-domain-reload-helper
unity-domain-reload-helper copied to clipboard
[BUG] [ClearOnReload] static List<MonoBehaviour> list = new() turns into null
I think that [ClearOnReload] nulls out a list that was created as part of its declaration. repro: [ClearOnReload] static List<MonoBehaviour> thisList = new(); void Update() { Debug.Log(thisList.Count()); } returns nullref
Can it be avoided by declaring initialization in constructor?