Skip to content

Commit c5488c2

Browse files
committed
Add debug prefill for bug report description and steps in BugReportUI
- Added conditional logging and prefilled fields for description and steps to reproduce when in BETAHUB_DEBUG mode, facilitating faster testing.
1 parent 28c5a7e commit c5488c2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Runtime/Scripts/BugReportUI.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,13 @@ IEnumerator CaptureScreenshotAndShowUI()
266266
IncludeVideoToggle.isOn = true;
267267
IncludeScreenshotToggle.isOn = true;
268268
IncludePlayerLogToggle.isOn = true;
269+
270+
#if BETAHUB_DEBUG
271+
Debug.Log("BETAHUB_DEBUG: Prefilling description and steps for reproduce for faster testing");
272+
// prefill the description and steps for reproduce for faster testing
273+
descriptionField.text = "The game is crashing when I press the sounds setting button. It happens on the main menu and on the settings menu.";
274+
stepsField.text = "1. Go to the main menu\n2. Press the settings button\n3. Press the sounds button\n4. Crash the game";
275+
#endif
269276

270277
bugReportPanel.SetActive(true);
271278
}

0 commit comments

Comments
 (0)