You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/platforms/godot/user-feedback/index.mdx
+51Lines changed: 51 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,57 @@ sidebar_order: 6000
7
7
8
8
Sentry makes it possible to collect user feedback, and optionally associate it with an error event.
9
9
10
+
<Alertlevel="info">
11
+
12
+
The User Feedback feature requires Sentry Godot SDK version `1.1.0` or higher.
13
+
14
+
</Alert>
15
+
16
+
## Using User Feedback UI
17
+
18
+
The Sentry Godot SDK includes a reference User Feedback UI, which you can find in `addons/sentry/user_feedback/`. This folder contains:
19
+
20
+
-`user_feedback_gui.tscn` + script: A complete, ready-to-use user feedback UI scene that automatically scales to different viewport resolutions.
21
+
-`user_feedback_form.tscn` + script: A minimal user feedback form, designed for integration into existing UI.
22
+
-`sentry_theme.tres`: The reference theme file used to customize the looks of user feedback UI.
23
+
24
+
For quick implementation, drag and drop `user_feedback_gui.tscn` from the addon folder to your scene tree under a `CanvasLayer` node and call `show()` to display the feedback form. The form automatically scales to different viewport resolutions and handles its own visibility, hiding when users click "Submit" (sending feedback to Sentry) or "Cancel".
25
+
26
+

27
+
28
+
You can customize which elements are displayed by toggling optional components such as the logo, name input field, and email input field through the inspector properties. `minimum_words` property controls the minimum number of words required in the feedback message.
29
+
30
+
To customize the form's appearance, use the provided reference theme file (`sentry_theme.tres`). You can duplicate this file, and edit it to create custom styling, then assign your theme to the `theme` property in the Inspector for the feedback UI node. It can be used to customize fonts, colors, separation, etc. For more advanced customizations involving layout changes, copy the entire `user_feedback/` folder into your project and modify the scenes and scripts as needed.
31
+
32
+
<Alertlevel="success"title="Tip">
33
+
34
+
Add `user_feedback_form.tscn` as a preview while editing the theme file to see your changes in real-time.
35
+
36
+
</Alert>
37
+
38
+
### Integrating the Form Into Existing UI
39
+
40
+
For custom UI integration, use `user_feedback_form.tscn` instead. This component scene provides a flexible panel that can be embedded into other UI controls. Unlike the standalone GUI, you'll need to manage its visibility manually. The form exposes two signals for handling user interactions: `feedback_submitted` (triggered when feedback is sent) and `feedback_cancelled` (triggered when the user cancels the operation). After you instantiate the form inside your UI scene, you can use the provided signals to hide the form when it's no longer needed (or perform some other action):
41
+
42
+
```GDScript
43
+
# Assuming you have already added the form to your scene with "UserFeedbackForm" unique name.
44
+
@onready var user_feedback_form = %UserFeedbackForm
45
+
46
+
func _ready():
47
+
user_feedback_form.feedback_submitted.connect(
48
+
func(_feedback: SentryFeedback) -> void:
49
+
user_feedback_form.hide()
50
+
print("User feedback submitted.")
51
+
)
52
+
user_feedback_form.feedback_cancelled.connect(
53
+
func() -> void:
54
+
user_feedback_form.hide()
55
+
print("User feedback cancelled.")
56
+
)
57
+
```
58
+
59
+
To customize the form's appearance, use the provided reference theme file (`sentry_theme.tres`), which can be duplicated to create a custom UI style. Simply assign your customized theme to the form's `theme` property in the Inspector to apply your styling changes.
60
+
10
61
## User Feedback API
11
62
12
63
The User Feedback API allows you to collect user feedback while using your own UI controls. You can submit feedback directly by creating an instance of `SentryFeedback` class, setting the required `message` and optional fields, then submitting it using `SentrySDK.capture_feedback(feedback)`.
0 commit comments