Skip to main content

Overview - Search for players - (Unity module)

Last updated on June 12, 2024

Introduction

Gaming is a social activity, thus finding and making friends is an important part of any online game. In this module, you will learn how to search for potential friends and invite them to become a friend.

Prerequisites

In order to complete this module, you will need:

  • To have completed the following module:

  • The Byte Wars tutorialmodules branch checked out in your local Byte Wars Unity project repository.

  • To force enable this module by adding the following code to the Assets/Resources/Modules/TutorialModuleConfig.json file:

      {
    "enableModulesOverride": true,
    "forceEnabledModules": ["FriendEssentials"],
    "forceDisabledOtherModules" : true,
    }

Learning objectives

At the end of this module, you will know how to implement searching for and displaying players and inviting players to be friends.

Preview

At the end of this module, your project will look like the image below and the following log:

Find friends and invite friends demo Unity Byte Wars search players

Success to send a friends request.