メインコンテンツまでスキップ

概要 - フレンドを管理する - (Unreal Engine モジュール)

Last updated on October 23, 2024

Introduction

In any online environment, it's important to be able to manage and control who your friends are. This module shows you how to unfriend, block players, and unblock players.

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 Unreal project repository.

  • To have force enabled this module. You can do this by adding the following code to the Config/DefaultEngine.ini file:

    [AccelByteTutorialModules]
    +ForcedEnabledModules=TutorialModule:MANAGINGFRIENDS
    ...

Learning objectives

At the end of this module, you will know how to implement:

  • Querying and displaying a list of blocked players
  • Blocking players
  • Unblocking players
  • Unfriending players on a friend list

Preview

At the end of this module, your project will look like the images below with the following logs:

  • Block a player:

    Block a player demo Unreal Byte Wars manage friends

    LogManagingFriends: Warning: Success to block a player.
  • Unblock a player:

    Unblock a player demo Unreal Byte Wars manage friends

    LogManagingFriends: Warning: Success to unblock a player.
  • Unfriend a friend:

    Unfriend a friend demo Unreal Byte Wars manage friends

    LogManagingFriends: Warning: Success to unfriend a friend.