I have no clue what happened but all of a sudden I get this error that says: `System.IO.File' does not contain a definition for `ReadAllBytes'
I don't know why the unity engine is freaking out about this error, but monodevelop is not getting the error and is instead showing the documentation as if it was working. And this is preventing me from playing the editor in play-mode because it counts as a compiler error.
tex.LoadImage(File.ReadAllBytes(imageFiles[i]));
I even have the namespace:
using System.IO;
What am I doing wrong here? What could have happened that is causing this? It was working before, but now it thinks it is broken.
↧