Add party logic
Last updated on December 19, 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:
Create a new script called
PartyHandler.cs
and attach it to theAccelByteHandler
gameObject.Add the following AccelByte libraries to the top of the script:
using UnityEngine;
using AccelByte.Api;
using AccelByte.Models;
using AccelByte.Core;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.