Skip to content

docs(unity): Document missing options and options configuration - #20414

Merged
bitsandfoxes merged 7 commits into
masterfrom
fix/unity-docs-undocumented-options
Nov 13, 2026
Merged

bitsandfoxes merged 7 commits into
masterfrom
fix/unity-docs-undocumented-options

Conversation

@bitsandfoxes

@bitsandfoxes bitsandfoxes commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

DESCRIBE YOUR PR

Documents the Unity SDK options that the Unity docs don't list yet, and corrects the Programmatic Configuration page. Every type and default is read from the sentry-unity 4.13.0 source. Where the editor window's default differs from the code default, the entry gives both.

Stacked on #20413 (options page corrections): this PR's base is that branch, so the diff shows only this PR's changes. It moves to master once #20413 merges.

  • Options page: about 60 short entries in new and existing sections: Core, Filtering, Logging & Breadcrumbs, Data Enrichment, Privacy, Hooks, Transport, Tracing, Native Support and Metrics. Each entry gives the type, the default, a sentence or two and a link to the topic page, and says when the option has no field in the configuration window. It covers:
    • Unity options such as Enabled, CaptureInEditor, Throttler, AddBreadcrumbsForLogType, the per-platform native support switches, the native initialization types, the experimental desktop backends and the experimental metrics.
    • Inherited .NET options that work in Unity, such as SampleRate, CacheDirectoryPath, TracePropagationTargets and IgnoreTransactions.
    • The extension methods DisableUnityLoggingIntegration(), DisableUnhandledExceptionCapture() and the exception-filter switches.
    • IsEnvironmentUser, with its window default and its per-platform code default.
    • FilterBadGatewayExceptions, which works from the window, an options configuration script and SentrySdk.Init.
  • Programmatic Configuration: the intro uses the window's real labels (Options Config tab, Option Config Script, New), names SentryOptionsConfiguration, and says that Configure runs after the window values and during player builds. The init-flow image is replaced by a mermaid diagram that shows where the native steps run, including WebGL's BeforeSceneLoad.
  • Native Support: names AndroidNativeInitializationType and IosNativeInitializationType.

The configuration window itself isn't documented here; it explains itself, and screenshots go stale quickly.

Pages to check on the preview:

  • /platforms/unity/configuration/options/
  • /platforms/unity/configuration/options/programmatic-configuration/ (the mermaid diagram)
  • /platforms/unity/native-support/

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-DD with the due date. You can update this information later by editing the PR description.

  • Urgent deadline (GA date, etc.): YYYY-MM-DD
  • Other deadline: YYYY-MM-DD
  • No deadline: Not urgent, can wait up to 1 week+

SLA

  • Teamwork makes the dream work, so please add a reviewer to your PRs.
  • Please give the docs team up to 1 week to review your PR unless you've supplied a deadline.

Thanks in advance for your help!

PRE-MERGE CHECKLIST

Make sure you've checked the following before merging your changes:

  • Checked Vercel preview for correctness, including links
  • PR was reviewed and approved by any necessary SMEs (subject matter experts)
  • PR was reviewed and approved by a member of the Sentry docs team

🤖 Generated with Claude Code

@vercel

vercel Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
develop-docs Ready Ready Preview Nov 13, 2026 8:11pm UTC
sentry-docs Ready Ready Preview Nov 13, 2026 8:11pm UTC

Request Review

@bitsandfoxes
bitsandfoxes force-pushed the fix/unity-docs-undocumented-options branch from 612cca0 to 8320597 Compare November 13, 2026 16:05
@codeowner-assignment
codeowner-assignment Bot requested a review from a team November 13, 2026 16:05
Base automatically changed from fix/unity-docs-options to master November 13, 2026 16:33
Add Options page entries for the Unity and inherited .NET options that
the page lacks, grouped into filtering, logging and breadcrumbs, native
support and metrics sections plus additions to the existing sections.
Entries state both defaults where the configuration window differs from
code and say when an option has no window field.

On the Programmatic Configuration page, describe how the options
configuration script is created, that Configure runs after the window
values and during builds, and that WebGL initializes at BeforeSceneLoad.
Replace the initialization flow image with a mermaid diagram.

Name the native initialization type options on the Native Support page.
@bitsandfoxes
bitsandfoxes merged commit 280db0b into master Nov 13, 2026
29 checks passed
@bitsandfoxes
bitsandfoxes deleted the fix/unity-docs-undocumented-options branch November 13, 2026 22:43
bitsandfoxes added a commit that referenced this pull request Nov 13, 2026
## 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.

- **Supported Platforms** table on the Native Support page: native
crashes, native SDK or backend, and requirements per platform, with the
minimum Unity version, dedicated servers, the supported consoles and the
platforms the SDK doesn't support. visionOS and UWP run on a best-effort
basis.
- Consoles report native crashes; the "work in progress" note is
removed.
- Android native support needs IL2CPP, and so does the default Cocoa
backend on macOS; the experimental Native backend works with Mono.
- **Scope Sync** section: what the SDK copies to the native SDKs, and
what doesn't reach native crashes (custom contexts, attachments on iOS
and macOS with Cocoa, the parts the app's SDK owns with Unity as a
Library, and NDK scope sync turned off). The Attachments and Context
pages link to it.
- Windows: every file the build copies next to the player
(`crashpad_handler.exe`, `crashpad_wer.dll`, `sentry-native.dll`; with
the experimental Native backend `sentry-crash.exe`, `sentry-wer.dll`,
`sentry-native.dll`), x64 and x86, and the experimental Native backend.
macOS: the experimental Native backend. `NativeHandlerPath` and
`DisableFileWrite`.
- Game Consoles: Xbox needs `PersistentLocalStorage` in
`MicrosoftGame.config`; Switch needs `TemporaryStorageSize` in the
`.nmeta`, and runs without file writes, automatic session tracking or
IL2CPP line numbers.
- Minidumps: "Windows, Linux, and macOS with the Native backend" on the
Native Support, Attachments and Store Minidumps pages.
- iOS: `main.mm` and `SentryObjC.xcframework` in the native support and
troubleshooting text.
- Known limitations: why WebGL has no IL2CPP line numbers.

The Unity quick start (`docs/platforms/unity/index.mdx`, open in #20012)
names only `crashpad_handler.exe` as 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-DD` with the
due date. You can update this information later by editing the PR
description.

- [ ] Urgent deadline (GA date, etc.): YYYY-MM-DD
- [ ] Other deadline: YYYY-MM-DD
- [x] No deadline: Not urgent, can wait up to 1 week+

## SLA

- Teamwork makes the dream work, so please add a reviewer to your PRs.
- Please give the docs team up to 1 week to review your PR unless you've
supplied a deadline.

Thanks in advance for your help!

## PRE-MERGE CHECKLIST

_Make sure you've checked the following before merging your changes:_

- [ ] Checked Vercel preview for correctness, including links
- [ ] PR was reviewed and approved by any necessary SMEs (subject matter
experts)
- [ ] PR was reviewed and approved by a member of the [Sentry docs
team](https://github.com/orgs/getsentry/teams/docs)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: JoshuaMoelans <60878493+JoshuaMoelans@users.noreply.github.com>

This branch was successfully deployed

2 active deployments
Preview – sentry-docs — b7be7b84 Deployed Nov 13, 2026 by vercel[bot]
Preview – develop-docs — b7be7b84 Deployed Nov 13, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority: Normal Docs review has no urgent deadline

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants