Method CaptureScreenshot
- Namespace
- GrindFest
- Assembly
- GrindFest.dll
CaptureScreenshot(Action<string>)
Capture a screenshot of the current game view, downscale to fit within MaxWidth x MaxHeight, save as PNG, and return the path. Hides the OneJS UIDocument while capturing so the panel itself isn't in the screenshot. Runs as a coroutine on the singleton.
public static void CaptureScreenshot(Action<string> onCaptured)