static Texture2D Scale(Texture2D tex, int scale, bool eagle = false) { var newTex = new Texture2D(tex.width * scale, tex.height * scale); for (var column = 0; column < newTex.width; column++) { for (var row = 0; row < newTex.height; row++) { if (eagle) { Eagle.SetPixelSampled(tex, ref newTex, column, row, scale); } else { SetPixelSampled(tex, ref newTex, column, row, scale); } } } return(newTex); }