Skip to content

Create Game Feedback

This how-to retrieves Game Feedback categories and sends a game feedback report from your game, letting you collect bug reports and other game feedback directly into LootLocker.

Prerequisites

Retrieve Category IDs

Before we can create the Feedback report, we first need to find the category to send the game report under.

If you only have a single category, you could manually retrieve the category ID from the Web Console. However, if you have multiple categories, you should list the categories and let the player choose which category to report under.

To retrieve all the categories, we can use the following code:

public void GetGameFeedbackCategories()
{
LootLockerSDKManager.ListGameFeedbackCategories((response) =>
{
if (!response.success)
{
// Replace this with your own error handling
Debug.Log("Could not list game related feedback categories");
Debug.Log(response.errorData.ToString());
return;
}
// Replace this section with your own UI to let the player choose the category
foreach (var category in response.categories)
{
Debug.Log(category.name + "\n"
+ category.description + "\n"
+ category.id);
}
});
}

Send Game Report

Now that we have the Category ID, we can send the game report.

To send a game report, we need to provide the following information:

  • The category ID
  • Optionally a description, which can be entered by the player, or filled in by the game
public void SendGameFeedback()
{
string categoryID = "category_id_here";
string description = "The tutorial gets stuck when I double tab space";
LootLockerSDKManager.SendGameFeedback(description, categoryID, (response) =>
{
if (!response.success)
{
// Replace this with your own error handling
Debug.Log("Could not create report");
Debug.Log(response.errorData.ToString());
return;
}
// Replace this with your own success handling
Debug.Log("Report sent to LootLocker");
});
}

Conclusion

You've listed Game Feedback categories and sent a game feedback report from your game. Next, see Create UGC Feedback or Create Player Feedback.