sentry-unity
sentry-unity copied to clipboard
documentation or support for integrating sentry in a injected package such as Harmony/BepInEx
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
- This is for a game mod using BepInEx **with** Harmony to inject code into the runtime.
- I'm looking for a SDK that will provide benchmarks/logging services for the new classes/code written.
- 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
- Does this project fall under the scope of sentry-unity or sentry-Csharp-dot-net integration as this would not utilize UPM
- 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.
- 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
- Directly bring references of
Sentry.Unityinto my project. (e.g. from release 1.8.0) - Move the entire Sentry Package into the target directory for debugging. (WIP, confirming which dependencies are truly required for Sentry.Unity to function)
- Package required Sentry libs alongside my project.