I'm using Unity 2020.3.8f1. I'm having some issues with console errors. Yesterday everything was working well but suddenly, the "Null Pointer Errors" and "Argument Null", etc won't appear on console.
The error symbol is selected and script errors (like missing a semi-colon ( ; ) ) still appear. But the errors that can appear during play mode won't appear.
As you can see on the image, I wrote this code to force errors on the console. Line 48 and line 49 appear on the console. (L49 even appears as an Error). After that, not a single line appears. On line 55, we should have an error saying that the list is empty or something like that.
Does anybody know what might be causing this?
public class PackOpeningManager : MonoBehaviour
{
GameObject bla;
public void Test()
{
Debug.Log("Hey Test");
bla.SetActive(true);
Debug.Log("Hey Won't appear");
}
}
And then I instantiate the Prefab:
GameObject packOpeningManager = Instantiate(Resources.Load("UIPrefabs/PackSystem/Pack Opening Manager") as GameObject, canvas);
PackOpeningManager packManager = packOpeningManager.transform.GetChild(0).GetComponent<PackOpeningManager>();
packManager.backgroundMovingParent = backgroundMovingParent;
packManager.background = background;
packManager.Test();