Documentation

Development

User Acquisition

Monetization

Industry

Friends

Friends

Multiplayer
​
​
Friends
  • Overview
  • Get started
  • Concepts
  • Tutorials
  • Reference
  • Privacy and consent
  1. Welcome to Friends

Get started with Friends

Set up Friends and learn how to link your Unity project.
Read time 2 minutes
Last updated 4 months ago

Warning
Attention: The Digital Services Act (DSA) requires Unity to notify our customers’ end users if Unity takes an action that impacts those end users under the DSA. To comply with this requirement, if you use Unity Gaming Services (UGS) products that rely on the Unity Authentication Service, you must integrate the notification API.
For more information on DSA, refer to the Digital Services Act - compliance update.
To make your game compliant, refer to DSA notifications.
This guide walks you through how to set up and start using Friends.

Prerequisites

To get started with Friends, you need to do the following:
  • Create a Unity ID.
  • Create a Unity Cloud account.
  • Create a project in your Unity Cloud account.

Set up Friends

You can set up and manage Friends through the Unity Dashboard:
  1. In the Unity Dashboard, go to Development > Products.
  2. Select Friends.
When you launch Friends for the first time, this adds Friends to the Shortcuts section on the sidebar and opens the Overview page.

Link your project with the Unity Dashboard

You must link your project with the Unity Dashboard to use the Friends service.
  1. From the Unity Editor, select Edit > Project Settings... > Services.
  2. Link your project.
    1. If your project doesn't have a Unity project ID:
      1. Select Create a Unity Project ID > Organizations, then select an organization.
      2. Select Create project ID.
    2. If you have an existing Unity project ID to use:
    3. Select Use an existing Unity project ID.
    4. Select an organization and a project.
    5. Select Link project ID.
Your Unity Project ID now appears in Unity Editor, and the project is linked to Unity’s cloud services. You can also access your Unity Project ID in code using
UnityEditor.CloudProjectSettings.projectId
.

Enable the Friends service

You can enable the Friends service for your project from the Unity Dashboard.
  1. In the Unity Dashboard, open your project.
  2. Go to Development > Products.
  3. Select Friends.
  4. You can enable Friends from the Overview page or the Setup Guide.
The Setup Guide walks you through linking your Unity project, installing the Friends package, and enabling the Friends service.

Install the Friends package

Once you've linked your project to the Unity Dashboard, you can install the latest version of the Friends package.
Use the Unity Package Manager to import the Friends package in the Unity Editor.

Initialize the Friends service

Once you’ve enabled the Friends service and imported the Friends SDK through the Package Manager in the Unity Editor, initialize the Core SDK using
await UnityServices.InitializeAsync()
.
The following code sample shows how to initialize the Friends service and any other Unity services in your project.
// Import required packagesusing Unity.Services.Core;using Unity.Services.Authentication;...private async Task MyMethod(){ // Initialize all of the used services await UnityServices.InitializeAsync(); // Sign in anonymously or using a provider await AuthenticationService.Instance.SignInAnonymouslyAsync(); // Initialize friends service await FriendsService.Instance.InitializeAsync(); // Start using the Friends SDK functionalities. var friends = FriendsService.Instance.Friends;}

Copyright © 2026 Unity Technologies
LegalPrivacy PolicyCookiesDocumentation Terms of UseDo Not Sell or Share My Personal InformationYour Privacy Choices (Cookie Settings)

"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S and elsewhere (more info here). Other names or brands are trademarks of their respective owners.

Some pages are machine-translated for convenience, and may contain inaccuracies. In the event of conflicting information, the English version is authoritative.

  • On this page
    • Prerequisites

    • Set up Friends

    • Link your project with the Unity Dashboard

    • Enable the Friends service

    • Install the Friends package

    • Initialize the Friends service


Report a problem with this page
​
​