Skip to content

Releases: getsentry/sentry-unity

4.0.0-beta.4

03 Nov 20:06

Choose a tag to compare

4.0.0-beta.4 Pre-release
Pre-release

Breaking Changes

  • sentry-native is now built on Ubuntu 22.04 instead of Ubuntu 20.04, which reached EOL in May 2025. If you are running you game on a server on Ubuntu 20.04, you should update the OS before upgrading to this SDK version. (#2355)

Bump to Sentry SDK for .NET v6.0.0-preview introduces the following changes

  • BreadcrumbLevel.Critical has been renamed to BreadcrumbLevel.Fatal for consistency with the other Sentry SDKs (#4605)
  • Removed SentrySdk.CaptureUserFeedback and all associated members. Use the newer SentrySdk.CaptureFeedback instead. (#4619)
  • ScopeExtensions.Populate is now internal (#4611)
  • Backpressure handling is now enabled by default, meaning that the SDK will monitor system health and reduce the sampling rate of events and transactions when the system is under load. When the system is determined to be healthy again, the sampling rates are returned to their original levels. (#4615)
  • Spans and Transactions now implement IDisposable so that they can be used with using statements/declarations that will automatically finish the span with a status of OK when it passes out of scope, if it has not already been finished, to be consistent with Activity classes when using OpenTelemetry (#4627)
  • SpanTracer and TransactionTracer are still public but these are now sealed (see also #4627)
  • CaptureFeedback now returns a SentryId and a CaptureFeedbackResult out parameter that indicate whether feedback was captured successfully and what the reason for failure was otherwise (#4613)

Behavioural Changes

  • The SDK no longer refreshes the trace ID when the app loses and regains focus. This means that the trace ID persists from game start to game end. The SDK now also automatically adds breadcrumbs on those lifecycle events. (#2374)

Features

  • The SDK no longer ends sessions as crashed when capturing unhandled or logged exceptions. Instead, sessions get correctly marked as SessionEndStatus.Unhandled (#2376)
  • Added support for Structured Logging. The SentrySdk.Logger API is now exposed for Unity users, enabling structured log capture. The SDK can also automatically capture and send Debug logs based on the options configured. (#2368)

Fixes

  • When configured, the SDK now no longer treats Debug.LogError events as exceptions but resports them as message events instead (#2377)

Fixes

  • When targeting Xbox, the SDK now correctly picks up the debug symbols for sentry-native from the Assets/Plugins/Sentry directory (#2363)

Dependencies

3.2.4

24 Oct 10:04

Choose a tag to compare

Dependencies

4.0.0-beta.3

09 Oct 17:48

Choose a tag to compare

4.0.0-beta.3 Pre-release
Pre-release

Breaking Changes

  • The SDK will now always add a breadcrumb when capturing an exception. The option to opt-out of this has been removed. (#2335)
  • The deprecated Runtime- and BuildTime-Configuration have been removed in favor of the single OptionsConfiguration script. When migrating you can make use of preprocessor directives to set specific options for specific platforms. Check out the (Migration Guide). (#2337)

Features

Fixes

  • Fixed crashes when adding breadcrumbs on iOS/macOS. This was caused by invalid date parsing and corrupted string data in the native bridge responsible for scope sync (#2327, #2338)
  • Fixed input handling in samples to work with old and new input system (#2319)
  • The SDK now captures exceptions on WebGL through the logging integration instead of the incompatible log handler, providing better stack trace support . (#2322)
  • Fixed input handling in samples to work with old and new input system. (#2319)

Dependencies

4.0.0-beta.2

16 Sep 13:29

Choose a tag to compare

4.0.0-beta.2 Pre-release
Pre-release

Breaking Changes

  • Removed Unity 2020 support, which reached End of Life in 2023. Minimum supported version now is 2021. (#2313)

Features

  • The SDK now has a dedicated sample scene for third party plugins like Cysharp, or DOTween. (#2289)
  • The SDK now automatically marks stack frames from Cysharp and DG.Tweening as non in-app. This highly improves the resulting stack trace quality in the issues details. (#2285)

Fixes

  • The SDK no longer accesses AnalyticsSessionInfo.userId when targeting console platforms. This was leading to crashes during launch. (#2309)
  • The SDK now deduplicates trace generation during startup and scene loading (#2301)
  • The SDK no longer appends multiple upload tasks when building for Android (#2300)
  • Fixed false positive ANR events on WebGL, i.e. when switching tabs, or unfocusing the player (#2306)
  • The SDK now automatically picks up previously missing debug symbols - i.e. BurstDebugInformation, by passing the
    target directory path to Sentry CLI. Sentry CLI then automatically and recursively picks up any not yet uploaded symbols. (#2298)
  • The check used to verify whether the current thread is the main-thread now includes JobsUtility.IsExecutingJob to support running in Burst. (#2226)
  • For targeting iOS, the Unity SDK now brings an iOS-only .xcframework, reducing package size. (#2264)

Dependencies

4.0.0-beta.1

28 Jul 21:29

Choose a tag to compare

4.0.0-beta.1 Pre-release
Pre-release

Fixes

  • The SDK now waits for 'End of Frame' before capturing a screenshot. This should address any blank or malformed screenshots previously attached to events. The SDK now also only captures one screenshot for the first error event in each individual frame. (#2240)

Dependencies

4.0.0-beta.0

16 Jul 20:34

Choose a tag to compare

4.0.0-beta.0 Pre-release
Pre-release

Breaking Changes

  • Removed Unity 2019 support, which reached End of Life in 2022. Minimum supported version now is 2020. (#2231)

  • Breaking Change: The Unity SDK's static API has been moved from Sentry.Unity.SentryUnity and Sentry.SentrySdk to Sentry.Unity.SentrySdk. This change enables manual/programatic SDK initialization with full functionality, previously only available through auto-initialization. The underlying .NET SDK's SentrySdk class is now internal, and several previously public classes like SentryInitialization and SentryIntegrations are now internal.

    Migration: Update your using directives from using Sentry; to using Sentry.Unity;. IDEs like Rider can automatically import the missing references. In some cases, you may need both using Sentry.Unity; (for the static API) and using Sentry; (for types like SentryId). No changes are required to your actual SDK method calls (e.g., SentrySdk.CaptureException() remains the same). (#2227, #2239)

Features

  • The SDK now comes with a SentryUserFeedback prefab ready to be used. You can drag and drop it into your scene or
    customize it by creating your own variant. The user feedback feature allows your users to provide feedback in form
    of a written message that can optionally have a screenshot attached. Read more about it (here). (#2220)

Dependencies

3.2.3

25 Jun 22:50

Choose a tag to compare

Significant change in behavior

  • The SDK no longer attaches screenshots when capturing errors in the Unity Editor. (#2163)

Fixes

  • When targeting Android, the SDK no longer causes SIGABORT crashes due to attempting to detach while still running code. (#2215)
  • The SDK no longer causes crashes with EXCEPTION_ACCESS_VIOLATION_READ when using the Mono scripting backend. The SDK now adds the active scene name to the context in IL2CPP builds only (#2206)

Dependencies

3.2.2

12 May 14:38

Choose a tag to compare

Fixes

  • When targeting WebGL with an unsupported configuration (i.e. when the exception support is set to none), the SDK now shows an error at build time instead of a runtime failure (#2141)
  • When targeting Desktop Platforms, Sentry-CLI now respects the SDK's debug logging verbosity (#2138)
  • When targeting iOS, the SDK now correctly updates the Sentry CLI options used for debug symbol upload when appending builds (#2146)
  • When targeting iOS and setting IgnoreCliErrors = true, the Xcode build will now succeed even if the symbol upload itself failed. This is aimed to allow users to unblock themselves (#2136)
  • Sentry CLI no longer requires the 'Organisation' option, and they have been removed from the configuration window. If you're providing an Organisation right now, nothing changes. Fresh setups will have the option omitted (#2137)

Dependencies

3.2.1

28 Apr 16:28

Choose a tag to compare

Fixes

  • Updated the SDK's proguard.cfg file to preserve the relevant Java SDK API to keep observing and synching the scope. The SDK no longer fails to set the trace on the native layer (#2132)

3.2.0

24 Apr 16:17

Choose a tag to compare

Fixes

  • Drastically improved performance of scope sync when targeting Android (#2107)
  • When targeting macOS, the SDK no longer fails to sync the scope to native events (#2104)
  • Updated the options grouping in the configuration window (#2121)

Features

  • The SDK now links errors and events (managed and native errors) via trace ID. This allows you to correlate events captured from different layers of your game (#1997, #2089, #2106)
  • The trace used to connect errors on different layers of your game gets regenerated every time the app gains focus, or the active scene changes (#2123)
  • The SDK now reports the game's name as part of the app context (2083)
  • The SDK now reports the active scene's name as part of the Unity Context (2084)

Dependencies