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

Add party logic

Last updated on May 29, 2024

These steps are done in the LobbyModels.cs file inside the plugin SDK. Since Party implementation can vary for each game, we recommend familiarizing yourself with other concepts and classes in the LobbyModels.cs file first.

To add party logic into your game, follow these steps:

  1. Create a new script called PartyHandler.cs and attach it to the AccelByteHandler gameObject.

  2. Add the following AccelByte libraries to the top of the script:

    using UnityEngine;
    using AccelByte.Api;
    using AccelByte.Models;
    using AccelByte.Core;
  3. Save your changes in the file.

What's next?

After adding the party logic into your game, you can proceed to adding basic party functionalities to your game such as creating parties, handling party invites, generating party codes, etc. Follow the steps in the Add party functionalities article.

On this page