Unity
Our Unity SDK builds on top of the .NET SDK and extends it with Unity-specific features. It gives you helpful hints for where and why an error or performance issue might have occurred.
Features:
- Automatically captures C# errors on multiple platforms, including: Android, iOS, macOS, Linux, Windows, and WebGL
- Line numbers for C# exceptions in IL2CPP builds
- Native support for automatic crash error tracking for:
- Android by using the Android SDK to support Java, Kotlin, C and C++
- iOS by using the iOS SDK to support Objective-C, Swift, C and C++
- Windows and Linux by using the Native SDK to support C and C++ with minidumps
- macOS by using the macOS SDK to support Objective-C, Swift, C and C++
- PlayStation, Xbox and Nintendo Switch support
- Screenshot attachments for errors
- ViewHierarchy attachments for errors
- Offline Caching stores event data to disk in case the device is not online
- Release Health to keep track of crash-free users and sessions
- Automatically adding breadcrumbs for
- Unity's
Debug.LogandDebug.LogWarning - Scene load, unload, active change
- Unity's
- Event debouncing to handle high amounts of log output i.e. during
Update
On this page, we get you up and running with Sentry's SDK.
Don't already have an account and Sentry project established? Head over to sentry.io, then return to this page.
Install the package via the Unity Package Manager using a Git URL to Sentry's SDK repository:
https://github.com/getsentry/unity.git
To use a specific version of the SDK, append #3.2.4 to the URL.
Installing the SDK will add an entry to Unity's top menu: Tools > Sentry. When you first open the menu, a wizard will guide you through the process of associating your game with a Sentry project and set up the initial configuration for you. The minimum configuration required is the DSN to your project.
Sentry can be further configured via the Sentry configuration window or programatically.