Open laurentopia opened 1 year ago
I think that [ClearOnReload] nulls out a list that was created as part of its declaration. repro: [ClearOnReload] static List thisList = new(); void Update() { Debug.Log(thisList.Count()); } returns nullref
Can it be avoided by declaring initialization in constructor?
I think that [ClearOnReload] nulls out a list that was created as part of its declaration. repro: [ClearOnReload] static List thisList = new();
void Update()
{
Debug.Log(thisList.Count());
}
returns nullref