https://github.com/bugfender/bugfendersdk-unity
Unity bindings for the native Bugfender iOS and Android SDKs
https://github.com/bugfender/bugfendersdk-unity
unity-package
Last synced: 3 months ago
JSON representation
Unity bindings for the native Bugfender iOS and Android SDKs
- Host: GitHub
- URL: https://github.com/bugfender/bugfendersdk-unity
- Owner: bugfender
- License: mit
- Created: 2022-01-07T16:50:53.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-02-06T11:54:13.000Z (4 months ago)
- Last Synced: 2025-02-06T12:35:00.452Z (4 months ago)
- Topics: unity-package
- Language: C#
- Homepage: https://docs.bugfender.com/docs/platforms/hybrid-platforms/bugfender-for-unity
- Size: 18.7 MB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Bugfender SDK for Unity
Unity bindings for the native Bugfender iOS and Android SDKs.
This package requires Unity 2022.3.27 (LTS), Unity 6 or newer.
## Installation
To use Bugfender in your Unity project, follow these steps:
* Browse to the Package Manager panel (**Window** menu > **Package Manager**)
* Press the **Add (+)** button and **Add package from git URL...**
* Enter the URL: `https://github.com/bugfender/BugfenderSDK-Unity.git`
* From the **Project** panel, open the **Packages** / **Bugfender** package and drag the **Bugfender** prefab to your main scene.
* Set the app key in the **Inspector** panel.
* You can use the `Bugfender.Log()` method to write logs.If your game has several scenes, you only need to add Bugfender once, on the first scene that gets executed.
If you use Bugfender on a platform other than iOS or Android, any calls to Bugfender will be ignored. Other than that, your application will keep working as usual. Please note that the WebGL platform is not yet supported, although we plan to support it in the future.
### Script Execution Order
You want the Bugfender SDK to initialize early to capture as many logs and errors as possible. Therefore, you can tweak the execution order to ensure it runs before other scripts. It starts with priority `-1` (lowest runs first) by default.You can change the priority in the **Project Settings** > **Script Execution Order**.
### Adjust the native Bugfender SDK versions
This package imports the native Bugfender SDKs for iOS and Android using Swift Package Manager and Gradle.By default, the latest compatible versions are used. If you would like to tweak that, you can fork this project and edit these files:
* For iOS: `Editor/IOSProjectBuildCustomizer.cs`
* For Android: `Runtime/Plugins/Android/Bugfender.androidlib/build.gradle`## Example project
Check out this project to see Bugfender in action: https://github.com/bugfender/unity-demo