Hey, I am trying the Project#01 Stealth tutorial but the switches for laser walls are not changing material and throwing NullReferenceException.
Sorry about writing about such a insignificant issue but I really feel that I want to get it to work…
I am not sure if I am doing something wrong or if it is written wrong or if it is coming in a later tutorial.
Renderer screen = transform.FindChild("prop_switchUnit_screen_001").renderer;
This is the line that throws the exception. I am not sure what is supposed to be written in the string and that exact text does not exist my project. (Might have missed something)
I tried changing it to the name of the object (prop_switchUnit_001) but that still throws exception and I don’t think that is what it is supposed to be since all switches is named differently.
Anyone have any idea how it should be fixed?
Also hope the rest of the videos will be added soon.