sentry-unity icon indicating copy to clipboard operation
sentry-unity copied to clipboard

Road to Console Support

Open bitsandfoxes opened this issue 5 months ago • 1 comments
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 are UNITY_SWITCH, UNITY_GAMECORE. Footgun: They do not set the UNITY_64 like Desktop.
  • [ ] Since native-support on consoles is powered by sentry-native we can reuse SentryNative.
    • We should look into unifying how the Unity SDK consumes sentry-native:
      • Desktop: Dynamic
      • Xbox: Dynamic
      • Switch: Static
      • PlayStation: Static
  • [ ] New userId mechanism required: The use of AnalyticsSessionInfo.userId is disallowed
  • [ ] Fetching of Operating System context.
  • [ ] Add install instructions to the native SDK variants
  • [ ] Add install instructions to the base Unity SDK (i.e. /Assets/Plugins/Sentry/Platform/support.md?)

bitsandfoxes avatar Jun 20 '25 13:06 bitsandfoxes