Repository navigation
docs(unity): Fix native support and platform docs - #20416
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
1 of 6 tasks
bitsandfoxes
marked this pull request as ready for review
November 3, 2026 14:30
bitsandfoxes
force-pushed
the
fix/unity-docs-native-platforms
branch
from
November 3, 2026 14:41
f7a6597 to
6aa06e1
Compare
bitsandfoxes
force-pushed
the
fix/unity-docs-native-platforms
branch
from
November 3, 2026 16:08
6aa06e1 to
92d507c
Compare
coolguyzone
approved these changes
Nov 5, 2026
coolguyzone
left a comment
Contributor
There was a problem hiding this comment.
Looks good, thanks for updating!
bitsandfoxes
force-pushed
the
fix/unity-docs-native-platforms
branch
from
November 13, 2026 12:23
92d507c to
f25e488
Compare
JoshuaMoelans
approved these changes
Nov 13, 2026
JoshuaMoelans
left a comment
Member
There was a problem hiding this comment.
lgtm, small nit on native backend not being experimental (but if it's still considered experimental in the Unity-use-case, I think it's fine leaving it as-is)
| On Windows, the Unity SDK includes the [Native SDK](/platforms/native/) with the crashpad backend. Windows native crashes are automatically captured through minidumps. To upload these to Sentry, the SDK copies the `crashpad_handler.exe` to the build output directory at the end of the build process. This executable must be included when shipping your game. | ||
| On Windows, the Unity SDK includes the [Native SDK](/platforms/native/) with the Crashpad backend, for both 64-bit (x64) and 32-bit (x86) players. Windows native crashes are captured through minidumps. At the end of the build, the SDK copies `crashpad_handler.exe`, `crashpad_wer.dll`, and `sentry-native.dll` next to the player. Include all three files when you ship your game. | ||
|
|
||
| With the experimental Native backend, which you can select with `options.Experimental.WindowsBackend = WindowsBackend.Native`, the SDK uploads crashes right away through the out-of-process `sentry-crash.exe` handler. The build copies `sentry-crash.exe`, `sentry-wer.dll`, and `sentry-native.dll` next to the player instead. Include all three files when you ship your game. |
Member
There was a problem hiding this comment.
Suggested change
| With the experimental Native backend, which you can select with `options.Experimental.WindowsBackend = WindowsBackend.Native`, the SDK uploads crashes right away through the out-of-process `sentry-crash.exe` handler. The build copies `sentry-crash.exe`, `sentry-wer.dll`, and `sentry-native.dll` next to the player instead. Include all three files when you ship your game. | |
| With the Native backend, which you can select with `options.Experimental.WindowsBackend = WindowsBackend.Native`, the SDK uploads crashes right away through the out-of-process `sentry-crash.exe` handler. The build copies `sentry-crash.exe`, `sentry-wer.dll`, and `sentry-native.dll` next to the player instead. Include all three files when you ship your game. |
|
|
||
| Native support on Windows, Linux, and macOS with the Native backend writes files to disk. If you set `DisableFileWrite`, the SDK turns native support off on these platforms. | ||
|
|
||
| With an out-of-process crash handler (Crashpad on Windows, or the experimental Native backend), `NativeHandlerPath` sets where the SDK looks for the handler executable. By default, it's next to the player executable. Learn more in <PlatformLink to="/configuration/options/">Options</PlatformLink>. |
Member
There was a problem hiding this comment.
backend isn't experimental since getsentry/sentry-native#1919
Suggested change
| With an out-of-process crash handler (Crashpad on Windows, or the experimental Native backend), `NativeHandlerPath` sets where the SDK looks for the handler executable. By default, it's next to the player executable. Learn more in <PlatformLink to="/configuration/options/">Options</PlatformLink>. | |
| With an out-of-process crash handler (Crashpad on Windows, or the Native backend), `NativeHandlerPath` sets where the SDK looks for the handler executable. By default, it's next to the player executable. Learn more in <PlatformLink to="/configuration/options/">Options</PlatformLink>. |
| The Native Support on macOS relies on the [macOS SDK](/platforms/apple/guides/macos/). Stackwalking happens in process. | ||
| By default, native support on macOS relies on the [macOS SDK](/platforms/apple/guides/macos/). Stackwalking happens in process. This Cocoa backend needs IL2CPP. With Mono, the SDK captures C# errors only. | ||
|
|
||
| With the experimental Native backend, which you can select with `options.Experimental.MacosBackend = MacosBackend.Native`, the SDK uses the [Native SDK](/platforms/native/) instead. It uploads crashes right away through the out-of-process `sentry-crash` handler, which the build copies next to the player, and it works with both IL2CPP and Mono. |
Member
There was a problem hiding this comment.
Suggested change
| With the experimental Native backend, which you can select with `options.Experimental.MacosBackend = MacosBackend.Native`, the SDK uses the [Native SDK](/platforms/native/) instead. It uploads crashes right away through the out-of-process `sentry-crash` handler, which the build copies next to the player, and it works with both IL2CPP and Mono. | |
| With the Native backend, which you can select with `options.Experimental.MacosBackend = MacosBackend.Native`, the SDK uses the [Native SDK](/platforms/native/) instead. It uploads crashes right away through the out-of-process `sentry-crash` handler, which the build copies next to the player, and it works with both IL2CPP and Mono. |
bitsandfoxes
force-pushed
the
fix/unity-docs-native-platforms
branch
from
November 13, 2026 16:05
f25e488 to
d734098
Compare
bitsandfoxes
force-pushed
the
fix/unity-docs-native-platforms
branch
from
November 13, 2026 16:33
d734098 to
092eb13
Compare
Base automatically changed from
fix/unity-docs-undocumented-options
to
master
November 13, 2026 22:43
Add a supported platforms table and a scope sync section to the Native Support page, and describe the Android, iOS, Windows and macOS native options and backends. Native crashes on consoles are supported, so drop the "work in progress" note. Document the Xbox PersistentLocalStorage requirement and the Nintendo Switch limits on the Game Consoles page. Fix the minidump platform list, the iOS main.mm and SentryObjC names, and the WebGL line number note.
Co-authored-by: JoshuaMoelans <60878493+JoshuaMoelans@users.noreply.github.com>
bitsandfoxes
force-pushed
the
fix/unity-docs-native-platforms
branch
from
November 13, 2026 22:43
3c9fb99 to
17d7c94
Compare
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DESCRIBE YOUR PR
Corrects the Unity native support and platform docs against the sentry-unity 4.13.0 source: which platforms get native crash reporting, what each one needs, and what reaches native crash reports.
Stacked on #20414, which adds the option entries this PR links to. Its base is that branch, so the diff shows only this PR's changes.
crashpad_handler.exe,crashpad_wer.dll,sentry-native.dll; with the experimental Native backendsentry-crash.exe,sentry-wer.dll,sentry-native.dll), x64 and x86, and the experimental Native backend. macOS: the experimental Native backend.NativeHandlerPathandDisableFileWrite.PersistentLocalStorageinMicrosoftGame.config; Switch needsTemporaryStorageSizein the.nmeta, and runs without file writes, automatic session tracking or IL2CPP line numbers.main.mmandSentryObjC.xcframeworkin the native support and troubleshooting text.The Unity quick start (
docs/platforms/unity/index.mdx, open in #20012) names onlycrashpad_handler.exeas the file to ship with a Windows build; it needs the same three-file list.Pages to check on the preview:
/platforms/unity/native-support//platforms/unity/game-consoles//platforms/unity/enriching-events/attachments//platforms/unity/enriching-events/context/IS YOUR CHANGE URGENT?
Help us prioritize incoming PRs by letting us know when the change needs to go live.
Select exactly one option. For deadlines, replace
YYYY-MM-DDwith the due date. You can update this information later by editing the PR description.SLA
Thanks in advance for your help!
PRE-MERGE CHECKLIST
Make sure you've checked the following before merging your changes:
🤖 Generated with Claude Code