Skip to content

Commit

Permalink
fix: Not adding the IL2CPP processor when in Editor (#1132)
Browse files Browse the repository at this point in the history
  • Loading branch information
bitsandfoxes authored Jan 6, 2023
1 parent e5ae9bc commit 14b46f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Fixes

- No longer log warnings about missing IL2CPP methods when running in the Editor ([#1132](https://github.com/getsentry/sentry-unity/pull/1132))

### Features

- Mono PDB files upload during build ([#1106](https://github.com/getsentry/sentry-unity/pull/1106))
Expand Down
2 changes: 1 addition & 1 deletion src/Sentry.Unity/ScriptableSentryUnityOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ internal SentryUnityOptions ToSentryUnityOptions(bool isBuilding, ISentryUnityIn
OptionsConfiguration?.Configure(options);

// Doing this after the configure callback to allow users to programmatically opt out
if (options.Il2CppLineNumberSupportEnabled && unityInfo is not null)
if (!application.IsEditor && options.Il2CppLineNumberSupportEnabled && unityInfo is not null)
{
options.AddIl2CppExceptionProcessor(unityInfo);
}
Expand Down

0 comments on commit 14b46f7

Please sign in to comment.