com.bugsplat.unity package provides crash and exception reporting for Unity projects. BugSplat provides you with invaluable insight into the issues tripping up your users. Our Unity integration collects screenshots, log files, exceptions, and Windows minidumps so that you can fix bugs and deliver a better user experience.
Additionally, you can check out our my-unity-crasher sample that demonstrates how to use
Information on how to install the OpenUPM package for node.js can be found here.
Information on adding a Unity package via a git URL can be found here.
BugSplat's Unity integration is flexible and can be used in a variety of ways. The easiest way to get started is to create new script and attach it to a GameObject. In your script, add a using statement that aliases
Next, create a new instance of
BugSplat passing it your
Application.version for application and version respectively.
You can set the defaults for a variety of properties on the
BugSplat instance. These default values will be used in exception and crash posts. Additionally, you can tell BugSplat to capture a screenshot, include the Player.log file, and include the Editor.log file when an exception is recorded.
You can send exceptions to BugSplat in a try/catch block by calling
The default values specified on the instance of
BugSplat can be overridden in the call to
Post. Additionally, you can provide a
Post that will be invoked with the result once the upload is complete.
You can also configure a global
LogMessageRecieved callback. When the BugSplat instance recieves a logging event where the type is
Exception it will upload the exception.
BugSplat can be configured to upload Windows minidumps created by the
UnityCrashHandler. If your game contains Native Windows C++ plugins,
.pdb files in the
Assets/Plugins/x86_64 folders they will be uploaded by BugSplat's PostBuild script and used in symbolication.
Each of the methods that post crashes to BugSplat also accept a
MinidumpPostOptions parameter and a callback. The usage of
callback are nearly identically to the
ExceptionPostOptions example listed above.
BugSplat ❤️s open source! If you feel that this integration can be improved, please open an Issue. If you have an awesome new feature you'd like to implement, we'd love to merge your Pull Request. You can also reach out to us via an email to firstname.lastname@example.org or the in-app chat on bugsplat.com.