public Texture2D LoadTexture(string path) { byte[] bytes = ECFile.ReadBytes(path); Texture2D target = new Texture2D(2, 2, TextureFormat.BGRA32, false); target.LoadImage(bytes); return(target); }