Migration Guide
Migrating From sentry.unity.lite
to sentry.unity
The Sentry Unity Lite SDK is deprecated for mobile, desktop, and console players. Customers using Unity 5.x or WebGL can still use the Sentry Unity Lite as it continues to be compatible with sentry.io.
The updated Sentry Unity SDK requires Unity version 2019.4 or higher with .NET Standard 2.0 scripting profile. Event submission happen on a background thread, which isn't currently available on WebGL players.
Sentry is deprecating the Sentry Unity Lite SDK for Mobile, Desktop and Console players. Customers using Unity 5.x or WebGL can still use the Sentry Unity Lite as it continues to be compatible with sentry.io.
- Remove the old
Sentry.cs
andSentrySdk.cs
files from your project. - Remove the old initialization code
gameObject.AddComponent<SentrySdk>().Dsn = "___PUBLIC_DSN___";
. - Install the new Sentry Unity SDK.
- Calls to the API such as
SentrySdk.CaptureMessage("Test event");
will continue to work and don't require any change. - Browse the documentation to learn more about the new capabilities of the SDK such as enriching events, performance monitoring and configuration.
- Package:
- upm:sentry-unity
- Version:
- 2.1.3
- Repository:
- https://github.com/getsentry/sentry-unity