Skip to content

Commit 4ac9ebe

Browse files
committed
Add Screenshots
1 parent 2557faa commit 4ac9ebe

23 files changed

+8
-1
lines changed

Assets/Scripts/DDOL_Navigation.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,17 @@ IEnumerator Capture(Texture2D capturedTexture)
106106

107107
capturedTexture.SetPixels32(colors);
108108
yield return new WaitForEndOfFrame();
109-
//capturedTexture.ReadPixels(new Rect(0, 0, Screen.width, Screen.height), 0, 0, false);
110109
capturedTexture.Apply();
111110

112111
cropBorder.SetActive(true);
113112
controlsParent.SetActive(true);
114113
}
114+
115+
#if UNITY_EDITOR
116+
[UnityEditor.MenuItem("Pseudo/Capture")]
117+
static void Capture()
118+
{
119+
ScreenCapture.CaptureScreenshot(string.Format("{0}.png", System.DateTime.Now.Ticks.ToString()));
120+
}
121+
#endif
115122
}

Screenshots/1/01-min.jpg

353 KB
Loading

Screenshots/1/02-min.jpg

354 KB
Loading

Screenshots/1/03-min.jpg

194 KB
Loading

Screenshots/1/04-min.jpg

205 KB
Loading

Screenshots/1/05-min.jpg

205 KB
Loading

Screenshots/1/06-min.jpg

101 KB
Loading

Screenshots/1/07-min.jpg

118 KB
Loading

Screenshots/1/08-min.PNG

742 KB
Loading

Screenshots/2/01-min.jpg

246 KB
Loading

0 commit comments

Comments
 (0)