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

documentation or support for integrating sentry in a injected package such as Harmony/BepInEx

Open zolantris opened this issue 1 year ago • 4 comments
trafficstars

Hello, I'm trying to support a game mod that injects additional code into a Unity game. Currently looking for documentation or pointers on how to do this.

Generic background information

  1. This is for a game mod using BepInEx **with** Harmony to inject code into the runtime.
  2. I'm looking for a SDK that will provide benchmarks/logging services for the new classes/code written.
  3. The project currently has a Unity project which is used to create asset bundles, but the main codebase exists outside of the assetbundle/unity project.

Questions

  1. Does this project fall under the scope of sentry-unity or sentry-Csharp-dot-net integration as this would not utilize UPM
  2. Does sentry support integrating Sentry within a C# runtime with unity? With sentry-unity I only see a way to install the package into a project, but I do not see a way to directly integrate the package using something such as nuget or directly copy pasting and initializing sentry-unity within the sector of my code.
  3. Is there a way to include sentry in my asset bundle or do I need to dynamically inject it and/or include the unity version of the package as a reference in my C# package?

Solution / Workaround

  1. Directly bring references of Sentry.Unity into my project. (e.g. from release 1.8.0)
  2. Move the entire Sentry Package into the target directory for debugging. (WIP, confirming which dependencies are truly required for Sentry.Unity to function)
  3. Package required Sentry libs alongside my project.

zolantris avatar Jan 22 '24 08:01 zolantris