void OnGUI() { if (GUI.Button(new Rect(10, 70, 50, 30), "Save")) { SaveToFile.DumpRenderTexture(m_rt, Application.dataPath + "/../" + Time.frameCount + ".png"); } }