This sample project for Backtrace's integration with Unity showcases some of the basic features available in Backtrace:
Types of reports
- Managed(C#)
- Native (CPP/Java)
- ANRs/Hangs
- Memory (OOM)
Backtrace features
- Breadcrumbs
- Attachments
- Linking source code
This project has been tested on Unity 2021.1.22f1 for iOS, Android, and Windows (IL2CPP, .Net standard 2.0) and it should work for other supported platforms as well.
- Unity environment 2021.1.22f1+
- Backtrace instance - Create your own at https://create.unity3d.com/jp-backtrace-trial
- (optional) One of Android / iOS / Windows modules to see various native crashes on each platform
- Set up a new project in your Backtrace instance.
- Create a token for the project project.
- In your Backtrace web console project settings go to Integration->Unity and copy the URL of the server.
- Clone this repo and open the "Scenes->SampleScene.unity" scene in Unity.
- In the "Backtrace Client" component of the "Sample Errors" game object, enter the URL of your Backtrace instance in the "Server Address" field.
The URL should look something like this:
https://submit.backtrace.io/[instance name]/[token string]/json
- Press "play" and click the buttons to see the various errors.
- Open your Backtrace web console and confirm the reports are appearing.
- Build (File->Build Settings...->Build) in Android / iOS / Windows platforms to test native errors.
- (optional) If you want to see the symbolicated errors for native crashes, follow the steps in the readme file.
- (optional) If you want to see the source code in the Backtrace web console, follow the steps in the support guide.
Below are some example custom Webhook integrations using Python with Docker. More information on setting up custom webhooks is available here:
- Please read the Backtrace Unity readme file for details on how to use Backtrace with Unity.
- Consult the FAQ if you have further questions.
- If you still have questions or would like more information / get a demo, please contact us.