Overview - Search for players - (Unity module)
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 have force enabled this module. You can do this 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:
Success to send a friends request.