I am trying to load in several materials at the scene start so it doesn’t have to load these every update they’re needed. so this is directly in void Start()
materials = new Material[2];
materials[0] = Resources.Load<Material>("Materials/Material1");
materials[1] = Resources.Load<Material>("Materials/Material2");
Debug.Log(materials[0].name);
However to me this seems like it is described Unity - Scripting API: Resources.Load yet I only get a NullReferenceException since nothing is being loaded in the material array.
I’ve checked if the naming was in anyway incorrect but they are the same. I’m confused.