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
Give users an easier way to provide user feedback using prefabs
Sentry has a User Feedback feature that is able to show the feedback collected from a user following an error, or simply initiated by a user (without the need to be connected to an error/event).
The feedback collection allows attaching trace information as well as Session Replay. In addition to other context like tags.
In terms of SDK support, in JS we added a web widget, that's easy to add to the screen:
Looking through the JS documentation for inspiration there are a two bigger points
The Widget - A configurable prefab
A prefab with one SentryUserFeedbackMonoBehaviour sitting on the root. The MonoBehaviour reads the feedback widget control options during Awake. The options could be stored on the ScriptableSentryUnityOptions.asset that are saved to /Resource. They could also be their own .asset.
The initially supported workflow for these would be either:
The .prefab can be instantiated as is, wherever users want to.
The .prefab can be copied by users, creating variants that can be freely modified.
Adding an API to SentryUnity.CreateFeedbackWidget that would take a RectTransform and some additional arguments and instantiate the default prefab at the given place in the hierarchy.
Activity
[-]User Feedback Prefab [/-][+]User Feedback Prefab[/+][-]User Feedback Prefab[/-][+]User Feedback Widget through Prefab[/+]bitsandfoxes commentedon May 16, 2025
Implementation
Looking through the JS documentation for inspiration there are a two bigger points
The Widget - A configurable prefab
A prefab with one
SentryUserFeedbackMonoBehavioursitting on the root. The MonoBehaviour reads the feedback widget control options duringAwake. The options could be stored on theScriptableSentryUnityOptions.assetthat are saved to/Resource. They could also be their own.asset.The initially supported workflow for these would be either:
.prefabcan be instantiated as is, wherever users want to..prefabcan be copied by users, creating variants that can be freely modified.SentryUnity.CreateFeedbackWidgetthat would take aRectTransformand some additional arguments and instantiate the default prefab at the given place in the hierarchy.Controls what to show
Show NameIs Name RequiredShow EmailIs Email RequiredCapture ScreenshotControls how to show it
Form TitleSubmit Button TextCancel Button TextAdd Screenshot Button TextMessage Input Field TitleMessage Input Field PlaceholderName Input Field TitleName Input Field PlaceholderEmail Input Field TitleEmail Input Field PlaceholderSuccess Message Text