Even though integrating Bugsense in your app is really easy, using it together with Unity3d might take some research!
So we thought we’d save you some trouble and show you that this, in fact, is also pretty easy, as long as you follow the steps below:
- First download the bugsense library jar file from http://www.bugsense.com/docs.
- Create the folders “Plugins/Android” in your project’s Assets folder.
- Go back to your project and refresh your assets (Assets menu from the top -> Refresh).
BugSense needs the Android’s Internet permission to send the reports to our servers and Write permission to save the data to the SD card.
To enable these permissions in Unity3d:
- click on Edit -> Project Preferences -> Player and select the Android icon.
- then select “Other Settings” and make sure you have selected “Require” in the Internet Access label and “External (SD Card)” in the Write Access label.
Next go to Assets -> Create -> C# Script and name it BugSenseHandler (or whatever suits you).
The BugSenseHandler script should look like this:
BugSense is implemented in the Start method, so Start becomes like this:
Some examples of how you can use Bugsense are:
That’s it! You’re all set. Now have some fun catching those bugs!
Oh and if you’re still having trouble, you can check out our Knowledge Base, contact us on twitter or email email@example.com. Whichever way, we’re here if you need our help!