Table of Contents

Class BugReportService

Namespace
GrindFest
Assembly
GrindFest.dll

Stateless helpers extracted from the legacy UIReportBug MonoBehaviour so the OneJS Bug Report panel can capture screenshots and submit reports without depending on the legacy scene panel being instantiated.

Same SendGrid endpoint, same recipient, same payload shape — just the network/screenshot plumbing without the UI bits.

public static class BugReportService
Inheritance
object
BugReportService

Methods

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.

OpenDiscord()
OpenIssueTracker()
OpenScreenshot(string)
Submit(bool, string, string)

Build the subject line ("[Bug] " / "[Feature] " + first 80 chars of the description) and dispatch the email. Fire-and-forget.