sentry-unity
sentry-unity copied to clipboard
Road to Console Support
trafficstars
The C# layer is expected to work on all console platforms.
We have POC working for
- https://github.com/getsentry/sentry-unity/pull/2068
- https://github.com/getsentry/sentry-unity/pull/2198
- Missing PR for PlayStation
From these POCs we can extract some commonly required changes to the SDK:
- [ ] Preprocessor Directives that go into
SentryInitialization.cs. There areUNITY_SWITCH,UNITY_GAMECORE. Footgun: They do not set theUNITY_64like Desktop. - [ ] Since native-support on consoles is powered by
sentry-nativewe can reuseSentryNative.- We should look into unifying how the Unity SDK consumes
sentry-native:- Desktop: Dynamic
- Xbox: Dynamic
- Switch: Static
- PlayStation: Static
- We should look into unifying how the Unity SDK consumes
- [ ] New
userIdmechanism required: The use of AnalyticsSessionInfo.userId is disallowed - [ ] Fetching of Operating System context.
- [ ] Xbox
- [ ] Switch
- [ ] PlayStation
- [ ] Add install instructions to the native SDK variants
- [ ] Add install instructions to the base Unity SDK (i.e.
/Assets/Plugins/Sentry/Platform/support.md?)