Material newMat = new Material (targ.renderer.sharedMaterial);
// --- Apply texture to the material - Note that on slower machines it may attempt to do this before the asset is finished creating, and a nullreference will be thrown. Ignore it
GUILayout.Label("Selected: ("+selectedStart[0]+","+selectedStart[1]+") to ("+(selectedStart[0]+horizTilesSelected)+","+(selectedStart[1]+vertTilesSelected)+")" );
Once the script compiles, set the default "Selection Box" reference image by clicking on the script and dragging the image to the exposed variable. I used a simple one I made in Photoshop: